summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndy Weidenbaum2017-09-06 23:04:47 -0700
committerAndy Weidenbaum2017-09-06 23:04:47 -0700
commit7516e7420c6f4da2feee547ea3cd382659df2639 (patch)
tree4b08d1c554d3c9ed559e265fcf1d095cc72541a3 /PKGBUILD
downloadaur-perl6-net-zmq.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0bbd4e241ee
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=perl6-net-zmq
+pkgver=0.8
+pkgrel=1
+pkgdesc="ZeroMQ bindings for Perl6"
+arch=('any')
+depends=('perl6' 'zeromq')
+checkdepends=('perl')
+makedepends=('git')
+groups=('perl6')
+url="https://github.com/arnsholt/Net-ZMQ"
+license=('PerlArtistic')
+source=($pkgname-$pkgver::git+https://github.com/arnsholt/Net-ZMQ)
+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.md -t "$pkgdir/usr/share/doc/$pkgname"
+ cp -dpr --no-preserve=ownership examples "$pkgdir/usr/share/doc/$pkgname"
+
+ msg2 'Installing...'
+ export RAKUDO_LOG_PRECOMP=1
+ export RAKUDO_RERESOLVE_DEPENDENCIES=0
+ perl6-install-dist \
+ --to="$pkgdir/usr/share/perl6/vendor" \
+ --for=vendor \
+ --from=.
+}