diff options
author | Andy Weidenbaum | 2016-01-07 15:50:21 -0800 |
---|---|---|
committer | Andy Weidenbaum | 2016-01-07 15:50:21 -0800 |
commit | 5d18937b813b98dfe154657347db6da9a70b33ab (patch) | |
tree | 3a0a41fd331d0d9ebedd43e248d1c33c135920b6 | |
download | aur-5d18937b813b98dfe154657347db6da9a70b33ab.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 55 |
2 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..105e0f86721d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +# Generated by mksrcinfo v8 +# Thu Jan 7 23:50:12 UTC 2016 +pkgbase = panda + pkgdesc = Perl6 module installer + pkgver = 2015.12 + pkgrel = 1 + url = https://github.com/tadzik/panda + arch = any + groups = perl6 + license = MIT + checkdepends = perl + makedepends = alacryd + makedepends = git + depends = perl6 + depends = perl6-file-find + depends = perl6-json-fast + depends = perl6-shell-command + conflicts = perl6-panda + source = panda-2015.12::git+https://github.com/tadzik/panda + sha256sums = SKIP + +pkgname = panda + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6e184d275274 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=panda +pkgver=2015.12 +pkgrel=1 +pkgdesc="Perl6 module installer" +arch=('any') +depends=('perl6' + 'perl6-file-find' + 'perl6-json-fast' + 'perl6-shell-command') +checkdepends=('perl') +makedepends=('alacryd' 'git') +groups=('perl6') +url="https://github.com/tadzik/panda" +license=('MIT') +source=($pkgname-$pkgver::git+https://github.com/tadzik/panda) +sha256sums=('SKIP') +conflicts=('perl6-panda') + +check() { + cd "$srcdir/$pkgname-$pkgver" + + msg2 'Running tests...' + PERL6LIB=lib prove -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 {CONTRIBUTING,README}.md -t "$pkgdir/usr/share/doc/$pkgname" + + msg2 'Installing...' + 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 -E 'dist|precomp|short')) + 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 '{}' \; + find "$pkgdir" -type f -print0 | xargs -0 sed -i "s,$pkgdir,,g" +} |