summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndy Weidenbaum2017-08-06 19:01:26 -0700
committerAndy Weidenbaum2017-08-06 19:01:26 -0700
commit5ccf62bd9f889d146ee784263ab3895c5d9da426 (patch)
tree0a0d8a668f20b989d2273147a25de32c26107eae /PKGBUILD
parent41750571f4657e1ee478d4897bffc69d39592017 (diff)
downloadaur-perl6-grammar-bnf.tar.gz
increment pkgrel; replace alacryd w/ install-dist
export RAKUDO_LOG_PRECOMP=1 export RAKUDO_RERESOLVE_DEPENDENCIES=0 perl6-install-dist \ --to="$pkgdir/usr/share/perl6/vendor" \ --for=vendor \ --from=. Thanks to Jonathon Fernyhough for figuring this out. Had just about given up on installing p6 pkgs system wide on arch.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 7 insertions, 16 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7fc4a3423da..14da67abd2f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,12 @@
pkgname=perl6-grammar-bnf
pkgver=0.1.0
-pkgrel=1
+pkgrel=2
pkgdesc="Parse BNF and ABNF grammars and generate Perl 6 grammars from them"
arch=('any')
depends=('perl6')
checkdepends=('perl')
-makedepends=('alacryd' 'git')
+makedepends=('git')
groups=('perl6')
url="https://github.com/tadzik/Grammar-BNF"
license=('MIT')
@@ -31,19 +31,10 @@ package() {
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
msg2 'Installing...'
- install -dm 755 "$pkgdir/usr/share/perl6/vendor"
export RAKUDO_LOG_PRECOMP=1
- export PERL6LIB="inst#$pkgdir/usr/share/perl6/vendor"
- alacryd install
-
- msg2 'Removing redundant precomp file dependencies...'
- _precomp=($(pacman -Qqg perl6 | pacman -Qql - | grep -E 'dist|precomp' || true))
- for _pc in "${_precomp[@]}"; do
- [[ -f "$pkgdir/$_pc" ]] && rm -f "$pkgdir/$_pc"
- done
-
- msg2 'Cleaning up pkgdir...'
- rm -f "$pkgdir/usr/share/perl6/vendor/version"
- find "$pkgdir" -type f -name "*.lock" -exec rm '{}' \;
- find "$pkgdir" -type f -print0 | xargs -0 sed -i "s,$pkgdir,,g"
+ export RAKUDO_RERESOLVE_DEPENDENCIES=0
+ perl6-install-dist \
+ --to="$pkgdir/usr/share/perl6/vendor" \
+ --for=vendor \
+ --from=.
}