diff options
author | Andy Weidenbaum | 2015-12-31 09:41:57 -0800 |
---|---|---|
committer | Andy Weidenbaum | 2015-12-31 09:41:57 -0800 |
commit | 1f522d80fbbb4c9e5dd0b12dae730fb6ed49e02a (patch) | |
tree | 75d9ecf96ce4fb52c2389c7694420fd81d290dfd | |
parent | 6f35069215e0b2acb80b4c923b1983db2c36db31 (diff) | |
download | aur-1f522d80fbbb4c9e5dd0b12dae730fb6ed49e02a.tar.gz |
use alacryd pkging
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 22 insertions, 6 deletions
@@ -1,12 +1,15 @@ +# Generated by mksrcinfo v8 +# Thu Dec 31 17:40:48 UTC 2015 pkgbase = perl6-json-marshal pkgdesc = Simple serialisation of objects to JSON pkgver = 0.0.3 - pkgrel = 1 + pkgrel = 2 url = https://github.com/jonathanstowe/JSON-Marshal arch = any groups = perl6 license = PerlArtistic checkdepends = perl + makedepends = alacryd makedepends = git depends = rakudo depends = perl6-json-name @@ -3,12 +3,12 @@ pkgname=perl6-json-marshal _p6name=JSON-Marshal pkgver=0.0.3 -pkgrel=1 +pkgrel=2 pkgdesc="Simple serialisation of objects to JSON" arch=('any') depends=('rakudo' 'perl6-json-name' 'perl6-json-tiny') checkdepends=('perl') -makedepends=('git') +makedepends=('alacryd' 'git') groups=('perl6') url="https://github.com/jonathanstowe/JSON-Marshal" license=('PerlArtistic') @@ -32,7 +32,20 @@ package() { install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" msg2 'Installing...' - mkdir -p "$pkgdir/usr/share/perl6/vendor/lib" - find lib -mindepth 1 -maxdepth 1 -exec \ - cp -dpr --no-preserve=ownership '{}' "$pkgdir/usr/share/perl6/vendor/lib" \; + install -dm 755 "$pkgdir/usr/share/perl6/vendor" + export PERL6LIB="inst#$pkgdir/usr/share/perl6/vendor" + alacryd install + + msg2 'Removing redundant precomp file dependencies...' + _precomp=($(pacman -Qg perl6 \ + | awk '{print $2}' \ + | xargs pacman -Ql \ + | awk '{print $2}' \ + | grep precomp)) + for _pc in "${_precomp[@]}"; do + [[ -f "$pkgdir/$_pc" ]] && rm -f "$pkgdir/$_pc" + done + + msg2 'Cleaning up pkgdir...' + find "$pkgdir" -type f -name "*.lock" -exec rm '{}' \; } |