diff options
author | Andy Weidenbaum | 2016-01-08 21:09:25 -0800 |
---|---|---|
committer | Andy Weidenbaum | 2016-01-08 21:09:25 -0800 |
commit | d4f6026aff2c114c79fc241cda80ca84119fcd2c (patch) | |
tree | 851a27f3b7f2f0321c8f54a7a85c886ce98e4f50 | |
download | aur-d4f6026aff2c114c79fc241cda80ca84119fcd2c.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cd73f93f29d1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Sat Jan 9 05:09:15 UTC 2016 +pkgbase = perl6-test-mock + pkgdesc = Simple creation of mock objects using the Act, Arrange, Assert pattern + pkgver = 0.0.1 + pkgrel = 1 + url = https://github.com/jnthn/test-mock + arch = any + groups = perl6 + license = PerlArtistic + checkdepends = perl + makedepends = alacryd + makedepends = git + depends = perl6 + source = perl6-test-mock-0.0.1::git+https://github.com/jnthn/test-mock + sha256sums = SKIP + +pkgname = perl6-test-mock + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..be088519fca4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=perl6-test-mock +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Simple creation of mock objects using the Act, Arrange, Assert pattern" +arch=('any') +depends=('perl6') +checkdepends=('perl') +makedepends=('alacryd' 'git') +groups=('perl6') +url="https://github.com/jnthn/test-mock" +license=('PerlArtistic') +source=($pkgname-$pkgver::git+https://github.com/jnthn/test-mock) +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.markdown -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 '{}' \; +} |