summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2016-01-07 15:50:23 -0800
committerAndy Weidenbaum2016-01-07 15:50:23 -0800
commit6c2ebf58d0d21018e68c000f368cc7c0aaf27318 (patch)
tree53c215028e812c8a37b9c581bc23c19dd23bf345
downloadaur-6c2ebf58d0d21018e68c000f368cc7c0aaf27318.tar.gz
Initial import
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD47
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..78d16e61e34
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Thu Jan 7 23:49:46 UTC 2016
+pkgbase = bamboo
+ pkgdesc = Perl6 dependency manager (bundler)
+ pkgver = 0.0.2
+ pkgrel = 1
+ url = https://github.com/sergot/bamboo
+ arch = any
+ groups = perl6
+ license = PerlArtistic
+ checkdepends = perl
+ makedepends = alacryd
+ makedepends = git
+ depends = panda
+ depends = perl6
+ depends = perl6-json-fast
+ source = bamboo-0.0.2::git+https://github.com/sergot/bamboo
+ sha256sums = SKIP
+
+pkgname = bamboo
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d8467ed740a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=bamboo
+pkgver=0.0.2
+pkgrel=1
+pkgdesc="Perl6 dependency manager (bundler)"
+arch=('any')
+depends=('panda' 'perl6' 'perl6-json-fast')
+checkdepends=('perl')
+makedepends=('alacryd' 'git')
+groups=('perl6')
+url="https://github.com/sergot/bamboo"
+license=('PerlArtistic')
+source=($pkgname-$pkgver::git+https://github.com/sergot/bamboo)
+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 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 '{}' \;
+}