diff options
author | Andy Weidenbaum | 2015-11-19 22:54:34 -0800 |
---|---|---|
committer | Andy Weidenbaum | 2015-11-19 22:54:34 -0800 |
commit | ce951d7630b18e44ffe8096d2177ae392845fa6c (patch) | |
tree | ad36699b79b835cd6b694fa987338307b86f299a /PKGBUILD | |
download | aur-ce951d7630b18e44ffe8096d2177ae392845fa6c.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..18aa3262feaf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=perl6-json-unmarshal +_p6name=JSON-Unmarshal +pkgver=0.03 +pkgrel=1 +pkgdesc="Turn JSON into objects" +arch=('any') +depends=('rakudo' 'perl6-json-name' 'perl6-json-tiny') +checkdepends=('perl') +makedepends=('git') +groups=('perl6') +url="https://github.com/tadzik/JSON-Unmarshal" +license=('MIT') +source=($pkgname-$pkgver::git+https://github.com/tadzik/JSON-Unmarshal) +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...' + mkdir -p "$pkgdir/usr/share/perl6/vendor/lib" + find lib -mindepth 1 -maxdepth 1 -exec \ + cp -dpr --no-preserve=ownership '{}' "$pkgdir/usr/share/perl6/vendor/lib" \; +} |