diff options
author | Andy Weidenbaum | 2016-01-07 16:22:39 -0800 |
---|---|---|
committer | Andy Weidenbaum | 2016-01-07 16:22:39 -0800 |
commit | 02d5fd82c5791109f0497d8e9616294564193e63 (patch) | |
tree | 730fbeb5a694f4c034aaa0d419ba283a57edbb4d | |
download | aur-02d5fd82c5791109f0497d8e9616294564193e63.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 51 |
2 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cc26d994931e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Fri Jan 8 00:22:37 UTC 2016 +pkgbase = perl6-syndication + pkgdesc = Syndication feed parser/generator (RSS / Atom) + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/retupmoca/p6-syndication + arch = any + groups = perl6 + license = MIT + checkdepends = perl + makedepends = alacryd + makedepends = git + depends = perl6 + depends = perl6-xml + source = perl6-syndication-1.0.0::git+https://github.com/retupmoca/p6-syndication + sha256sums = SKIP + +pkgname = perl6-syndication + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..647fd620659a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=perl6-syndication +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Syndication feed parser/generator (RSS / Atom)" +arch=('any') +depends=('perl6' 'perl6-xml') +checkdepends=('perl') +makedepends=('alacryd' 'git') +groups=('perl6') +url="https://github.com/retupmoca/p6-syndication" +license=('MIT') +source=($pkgname-$pkgver::git+https://github.com/retupmoca/p6-syndication) +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 '{}' \; +} |