diff options
author | Andy Weidenbaum | 2016-05-05 00:15:56 -0700 |
---|---|---|
committer | Andy Weidenbaum | 2016-05-05 00:15:56 -0700 |
commit | abea5ed2a79861e43dee85de4f6a6e27d68b9a54 (patch) | |
tree | 32a690b827de80809f24ffc622c9011bd19fcd10 | |
download | aur-abea5ed2a79861e43dee85de4f6a6e27d68b9a54.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..36774a355f39 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Thu May 5 07:15:49 UTC 2016 +pkgbase = perl6-oyatul + pkgdesc = Abstract representation of a filesystem layout + pkgver = 0.0.3 + pkgrel = 1 + url = https://github.com/jonathanstowe/Oyatul + arch = any + groups = perl6 + license = PerlArtistic + checkdepends = perl + makedepends = alacryd + makedepends = git + depends = perl6 + depends = perl6-json-fast + source = perl6-oyatul-0.0.3::git+https://github.com/jonathanstowe/Oyatul + sha256sums = SKIP + +pkgname = perl6-oyatul + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6f658c1e86cb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=perl6-oyatul +pkgver=0.0.3 +pkgrel=1 +pkgdesc="Abstract representation of a filesystem layout" +arch=('any') +depends=('perl6' 'perl6-json-fast') +checkdepends=('perl') +makedepends=('alacryd' 'git') +groups=('perl6') +url="https://github.com/jonathanstowe/Oyatul" +license=('PerlArtistic') +source=($pkgname-$pkgver::git+https://github.com/jonathanstowe/Oyatul) +sha256sums=('SKIP') + +check() { + cd "$srcdir/$pkgname-$pkgver" + + msg2 'Running tests...' + PERL6LIB=lib prove -r -e perl6 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + msg2 'Installing license...' + install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + + msg2 'Installing documentation...' + 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...' + find "$pkgdir" -type f -name "*.lock" -exec rm '{}' \; +} |