Date: Thursday, April 20, 2017 @ 20:04:47 Author: foutrelis Revision: 224017
archrelease: copy trunk to community-x86_64 Added: ponyc/repos/community-x86_64/PKGBUILD (from rev 224016, ponyc/trunk/PKGBUILD) Deleted: ponyc/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 122 +++++++++++++++++++++++++++++-------------------------------- 1 file changed, 58 insertions(+), 64 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-04-20 20:04:39 UTC (rev 224016) +++ PKGBUILD 2017-04-20 20:04:47 UTC (rev 224017) @@ -1,64 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=ponyc -pkgver=0.13.0 -pkgrel=2 -pkgdesc='An actor model, capabilities, high performance programming language' -url='http://ponylang.org/' -arch=('x86_64') -license=('BSD') -# llvm=3.9.1 will need to be manually installed to the chroot once LLVM 4.0 has moved to [extra] -makedepends=('llvm=3.9.1' 'git') -checkdepends=('pcre2') -options=('!strip') -optdepends=('pcre2: Needed for the regex package.') -source=("$pkgname-$pkgver.tar.gz::https://github.com/ponylang/ponyc/archive/$pkgver.tar.gz") -sha512sums=('ae1a5d3c8058d74deffee31a2f8f529db8315b860977c76af4fcf2be504df6c9c7a0e186d9c60df1d6f9f663cc6361abecbae2a896482ebd4427b4228d885fee') - -prepare() { - cd ponyc-$pkgver - # https://github.com/ponylang/ponyc/issues/1592 - sed -i 's/$(LLVM_CONFIG) --libs/& --link-static/' Makefile -} - -build() { - cd ponyc-$pkgver - make config=release prefix=/usr arch=x86-64 verbose= - - mkdir docs - build/release/ponyc packages/stdlib -rexpr -g -o docs -} - -check() { - cd ponyc-$pkgver - make config=release prefix=/usr arch=x86-64 verbose= test -} - -package() { - cd ponyc-$pkgver - # The makefile is very strange and requires almost as much post-correction - # as to simply do the installation myself. Even with patches to the - # makefile to stop it attempting to symlink locations it has no business - # touching. - #make config=release prefix=/usr destdir="$pkgdir"/usr/lib/pony/"$pkgver" install - - install -Dm755 build/release/ponyc "$pkgdir"/usr/lib/pony/"$pkgver"/bin/ponyc - install -Dm644 build/release/libponyrt-pic.a "$pkgdir"/usr/lib/libponyrt.a - install -Dm644 build/release/libponyc.a "$pkgdir"/usr/lib/libponyc.a - install -Dm644 src/libponyrt/pony.h "$pkgdir"/usr/include/pony.h - - # Ponyc is designed to read its standard packages from the same directory. - install -dm755 "$pkgdir"/usr/bin - ln -sf /usr/lib/pony/"$pkgver"/bin/ponyc "$pkgdir"/usr/bin - - cp -dr --no-preserve=ownership packages "$pkgdir"/usr/lib/pony/"$pkgver" - - # Let's include the examples as documentation is scarce. - install -dm755 "$pkgdir"/usr/share/doc/pony - cp -dr --no-preserve=ownership examples "$pkgdir"/usr/share/doc/pony - - cp -dr docs/* "$pkgdir"/usr/share/doc/pony - - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE -} Copied: ponyc/repos/community-x86_64/PKGBUILD (from rev 224016, ponyc/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-04-20 20:04:47 UTC (rev 224017) @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=ponyc +pkgver=0.13.0 +pkgrel=3 +pkgdesc='An actor model, capabilities, high performance programming language' +url='http://ponylang.org/' +arch=('x86_64') +license=('BSD') +depends=('llvm39-libs') +makedepends=('llvm39' 'git') +checkdepends=('pcre2') +options=('!strip') +optdepends=('pcre2: Needed for the regex package.') +source=("$pkgname-$pkgver.tar.gz::https://github.com/ponylang/ponyc/archive/$pkgver.tar.gz") +sha512sums=('ae1a5d3c8058d74deffee31a2f8f529db8315b860977c76af4fcf2be504df6c9c7a0e186d9c60df1d6f9f663cc6361abecbae2a896482ebd4427b4228d885fee') + +build() { + cd ponyc-$pkgver + make config=release prefix=/usr arch=x86-64 verbose= + + mkdir docs + build/release/ponyc packages/stdlib -rexpr -g -o docs +} + +check() { + cd ponyc-$pkgver + make config=release prefix=/usr arch=x86-64 verbose= test +} + +package() { + cd ponyc-$pkgver + # The makefile is very strange and requires almost as much post-correction + # as to simply do the installation myself. Even with patches to the + # makefile to stop it attempting to symlink locations it has no business + # touching. + #make config=release prefix=/usr destdir="$pkgdir"/usr/lib/pony/"$pkgver" install + + install -Dm755 build/release/ponyc "$pkgdir"/usr/lib/pony/"$pkgver"/bin/ponyc + install -Dm644 build/release/libponyrt-pic.a "$pkgdir"/usr/lib/libponyrt.a + install -Dm644 build/release/libponyc.a "$pkgdir"/usr/lib/libponyc.a + install -Dm644 src/libponyrt/pony.h "$pkgdir"/usr/include/pony.h + + # Ponyc is designed to read its standard packages from the same directory. + install -dm755 "$pkgdir"/usr/bin + ln -sf /usr/lib/pony/"$pkgver"/bin/ponyc "$pkgdir"/usr/bin + + cp -dr --no-preserve=ownership packages "$pkgdir"/usr/lib/pony/"$pkgver" + + # Let's include the examples as documentation is scarce. + install -dm755 "$pkgdir"/usr/share/doc/pony + cp -dr --no-preserve=ownership examples "$pkgdir"/usr/share/doc/pony + + cp -dr docs/* "$pkgdir"/usr/share/doc/pony + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE +}