diff options
author | Andy Weidenbaum | 2016-07-17 17:28:11 -0700 |
---|---|---|
committer | Andy Weidenbaum | 2016-07-17 17:28:11 -0700 |
commit | e8e6ad14050e029b516cda33de8c605be6454403 (patch) | |
tree | f0a147f198319881fb760a91bc731f0969dcdf48 | |
download | aur-e8e6ad14050e029b516cda33de8c605be6454403.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c8e8ae6c1cdb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Mon Jul 18 00:27:48 UTC 2016 +pkgbase = perl6-distribution-common + pkgdesc = Create an installable Distribution from common sources + pkgver = 0.0.1 + pkgrel = 1 + url = https://github.com/ugexe/Perl6-Distribution--Common + arch = any + groups = perl6 + license = PerlArtistic + checkdepends = perl + makedepends = alacryd + makedepends = git + depends = perl6 + options = !purge + source = perl6-distribution-common-0.0.1::git+https://github.com/ugexe/Perl6-Distribution--Common + sha256sums = SKIP + +pkgname = perl6-distribution-common + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3c09c22b1fc3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=perl6-distribution-common +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Create an installable Distribution from common sources" +arch=('any') +depends=('perl6') +checkdepends=('perl') +makedepends=('alacryd' 'git') +groups=('perl6') +url="https://github.com/ugexe/Perl6-Distribution--Common" +license=('PerlArtistic') +options=('!purge') +source=($pkgname-$pkgver::git+https://github.com/ugexe/Perl6-Distribution--Common) +sha256sums=('SKIP') + +check() { + cd "$srcdir/$pkgname-$pkgver" + + msg2 'Running tests...' + PERL6LIB=lib prove -r -e perl6 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + msg2 'Installing documentation...' + install -Dm 644 README.pod -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" + find "$pkgdir" -type f -print0 | xargs -0 sed -i "s,$srcdir,,g" +} |