diff options
author | Andy Weidenbaum | 2016-01-04 18:16:43 -0800 |
---|---|---|
committer | Andy Weidenbaum | 2016-01-04 18:16:43 -0800 |
commit | a7ef2508bb0d3d57ac8cdd30ac8deec39fada87f (patch) | |
tree | 5d86ef6d712739cf91c09a5d1617a5f8cbcabac2 | |
download | aur-a7ef2508bb0d3d57ac8cdd30ac8deec39fada87f.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 51 |
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5470e8572c65 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Tue Jan 5 02:16:37 UTC 2016 +pkgbase = perl6-io-path-more + pkgdesc = Extends IO::Path to make it more like p5's Path::Class + pkgver = 0.0.1 + pkgrel = 1 + url = https://github.com/labster/p6-IO-Path-More + arch = any + groups = perl6 + license = PerlArtistic + checkdepends = perl + makedepends = alacryd + makedepends = git + depends = perl6 + depends = perl6-file-find + depends = perl6-shell-command + source = perl6-io-path-more-0.0.1::git+https://github.com/labster/p6-IO-Path-More + sha256sums = SKIP + +pkgname = perl6-io-path-more + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6e5d5d3b3ffc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=perl6-io-path-more +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Extends IO::Path to make it more like p5's Path::Class" +arch=('any') +depends=('perl6' 'perl6-file-find' 'perl6-shell-command') +checkdepends=('perl') +makedepends=('alacryd' 'git') +groups=('perl6') +url="https://github.com/labster/p6-IO-Path-More" +license=('PerlArtistic') +source=($pkgname-$pkgver::git+https://github.com/labster/p6-IO-Path-More) +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 -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 '{}' \; +} |