Date: Monday, October 26, 2015 @ 15:19:51 Author: fyan Revision: 145016
upgpkg: ponyc 0.2.1.20151021-1 - disable strip as the stripped package won't even compile a helloworld example - reorganize directories - build and ship stdlib docs Modified: ponyc/trunk/PKGBUILD ----------+ PKGBUILD | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-10-26 13:00:33 UTC (rev 145015) +++ PKGBUILD 2015-10-26 14:19:51 UTC (rev 145016) @@ -2,28 +2,36 @@ # Maintainer: Felix Yan <[email protected]> pkgname=ponyc -pkgver=0.1.7 -pkgrel=3 -pkgdesc='An actor model, capabilities, high performance programming language.' +pkgver=0.2.1.20151021 +_commit=b1a312cfc487713758ceccf1bf649f1f64f0f9ed +pkgrel=1 +pkgdesc='An actor model, capabilities, high performance programming language' url='http://ponylang.org/' arch=('x86_64') license=('BSD') depends=('zlib' 'ncurses' 'gcc-libs') -makedepends=('llvm') +makedepends=('llvm' 'git') checkdepends=('pcre2') +options=('!strip') optdepends=('pcre2: Needed for the regex package.') -source=("http://releases.ponylang.org/source/ponyc-$pkgver.tar.bz2") -sha512sums=('018c77a5848efee95f2733e54995ee2f06874b8dae45c46c93066144e00dd93b12eaa56dbf1a83b7e1d8eeaac3decf9706ebe8a56f97c8d789f8ce07a7c4da78') +source=("git+https://github.com/CausalityLtd/ponyc.git#commit=$_commit") +sha512sums=('SKIP') build() { - make config=release prefix=/usr arch=core2 + cd ponyc + make config=release prefix=/usr arch=x86-64 + + mkdir docs + build/release/ponyc packages/stdlib -rexpr -g -o docs } check() { - make config=release prefix=/usr arch=core2 test + cd ponyc + make config=release prefix=/usr arch=x86-64 test } package() { + cd ponyc # 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 @@ -30,7 +38,7 @@ # touching. #make config=release prefix=/usr destdir="$pkgdir"/usr/lib/pony/"$pkgver" install - install -Dm755 build/release/ponyc "$pkgdir"/usr/lib/pony/"$pkgver"/ponyc + install -Dm755 build/release/ponyc "$pkgdir"/usr/lib/pony/"$pkgver"/bin/ponyc install -Dm644 build/release/libponyrt.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 @@ -37,13 +45,15 @@ # Ponyc is designed to read its standard packages from the same directory. install -dm755 "$pkgdir"/usr/bin - ln -sf /usr/lib/pony/"$pkgver"/ponyc "$pkgdir"/usr/bin/ponyc + ln -sf /usr/lib/pony/"$pkgver"/bin/ponyc "$pkgdir"/usr/bin - cp -dr --no-preserve=ownership packages/* "$pkgdir"/usr/lib/pony/"$pkgver" + 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 }
