Date: Thursday, December 21, 2017 @ 09:54:12 Author: felixonmars Revision: 275150
archrelease: copy trunk to community-x86_64 Added: ponyc/repos/community-x86_64/PKGBUILD (from rev 275149, ponyc/trunk/PKGBUILD) Deleted: ponyc/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 134 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 67 insertions(+), 67 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-12-21 09:53:55 UTC (rev 275149) +++ PKGBUILD 2017-12-21 09:54:12 UTC (rev 275150) @@ -1,67 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=ponyc -pkgver=0.21.0 -pkgrel=1 -pkgdesc='An actor model, capabilities, high performance programming language' -url='http://ponylang.org/' -arch=('x86_64') -license=('BSD') -depends=('llvm-libs') -makedepends=('llvm') -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" - https://github.com/winksaville/ponyc/commit/64b64a21b1be70caf4202eb1b1fa22dac1bd6575.patch) -sha512sums=('637fca68c3e78c6bd4ad5d6d40993c8283077d582dc621bb3f56b2020d61fa153e73f2da81e573a6d4d22b37e0ebf9a1287a31dcdb9b73ce3b60eb3f4bec9068' - '5ff30453ef144d87a32b6c29e024dfbbb252f224b97e4d57df587e796809ca23613f3769d9e66b2f68c1b3d9033108c1c59a8d030ef515edced6d6b3b7ceb6b8') - -prepare() { - cd ponyc-$pkgver - sed -i 's/-Werror //' Makefile - - patch -p1 -i ../64b64a21b1be70caf4202eb1b1fa22dac1bd6575.patch -} - -build() { - cd ponyc-$pkgver - make config=release prefix=/usr arch=x86-64 verbose= default_pic=true - - mkdir docs - build/release/ponyc packages/stdlib -rexpr -g -o docs -} - -check() { - cd ponyc-$pkgver - make config=release prefix=/usr arch=x86-64 verbose= default_pic=true 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 275149, ponyc/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-12-21 09:54:12 UTC (rev 275150) @@ -0,0 +1,67 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=ponyc +pkgver=0.21.0 +pkgrel=2 +pkgdesc='An actor model, capabilities, high performance programming language' +url='http://ponylang.org/' +arch=('x86_64') +license=('BSD') +depends=('llvm-libs') +makedepends=('llvm') +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" + https://github.com/winksaville/ponyc/commit/64b64a21b1be70caf4202eb1b1fa22dac1bd6575.patch) +sha512sums=('637fca68c3e78c6bd4ad5d6d40993c8283077d582dc621bb3f56b2020d61fa153e73f2da81e573a6d4d22b37e0ebf9a1287a31dcdb9b73ce3b60eb3f4bec9068' + '5ff30453ef144d87a32b6c29e024dfbbb252f224b97e4d57df587e796809ca23613f3769d9e66b2f68c1b3d9033108c1c59a8d030ef515edced6d6b3b7ceb6b8') + +prepare() { + cd ponyc-$pkgver + sed -i 's/-Werror //' Makefile + + patch -p1 -i ../64b64a21b1be70caf4202eb1b1fa22dac1bd6575.patch +} + +build() { + cd ponyc-$pkgver + make config=release prefix=/usr arch=x86-64 verbose= default_pic=true + + mkdir docs + build/release/ponyc packages/stdlib -rexpr -g -o docs +} + +check() { + cd ponyc-$pkgver + make config=release prefix=/usr arch=x86-64 verbose= default_pic=true 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-pic.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 +}