summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2016-01-08 22:22:36 -0800
committerAndy Weidenbaum2016-01-08 22:22:36 -0800
commita9a75081d7d144b2a38e6ea0ab62cdee15f2802f (patch)
tree501d2139cb8733710ca7cd9ac0c5e152786f42dc
downloadaur-a9a75081d7d144b2a38e6ea0ab62cdee15f2802f.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD49
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9cb4cc8aa4d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Sat Jan 9 06:22:34 UTC 2016
+pkgbase = perl6-net-curl
+ pkgdesc = Perl 6 interface to libcurl, the free and easy-to-use client-side URL transfer library
+ pkgver = 0.0.1
+ pkgrel = 1
+ url = https://github.com/azawawi/perl6-net-curl
+ arch = any
+ groups = perl6
+ license = PerlArtistic
+ checkdepends = perl
+ makedepends = alacryd
+ makedepends = git
+ depends = curl
+ depends = perl6
+ source = perl6-net-curl-0.0.1::git+https://github.com/azawawi/perl6-net-curl
+ sha256sums = SKIP
+
+pkgname = perl6-net-curl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6bb570cd788
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=perl6-net-curl
+pkgver=0.0.1
+pkgrel=1
+pkgdesc="Perl 6 interface to libcurl, the free and easy-to-use client-side URL transfer library"
+arch=('any')
+depends=('curl' 'perl6')
+checkdepends=('perl')
+makedepends=('alacryd' 'git')
+groups=('perl6')
+url="https://github.com/azawawi/perl6-net-curl"
+license=('PerlArtistic')
+source=($pkgname-$pkgver::git+https://github.com/azawawi/perl6-net-curl)
+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"
+
+ 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 '{}' \;
+ find "$pkgdir" -type f -print0 | xargs -0 sed -i "s,$pkgdir,,g"
+}