summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2016-01-07 16:12:07 -0800
committerAndy Weidenbaum2016-01-07 16:12:07 -0800
commit6dab54447f08c842f2ef47e82ef9bada12341845 (patch)
tree495cc13e1a7ec498c4cfbe5b4f77cb0965add934
downloadaur-6dab54447f08c842f2ef47e82ef9bada12341845.tar.gz
Initial import
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD48
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b4d3e0269ae
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Fri Jan 8 00:12:04 UTC 2016
+pkgbase = perl6-text-csv
+ pkgdesc = Handle CSV data in perl6
+ pkgver = 0.002
+ pkgrel = 1
+ url = https://github.com/Tux/CSV
+ arch = any
+ groups = perl6
+ license = PerlArtistic
+ checkdepends = perl
+ makedepends = alacryd
+ makedepends = git
+ depends = perl6
+ depends = perl6-file-temp
+ depends = perl6-slang-tuxic
+ source = perl6-text-csv-0.002::git+https://github.com/Tux/CSV
+ sha256sums = SKIP
+
+pkgname = perl6-text-csv
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1c730e46daa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=perl6-text-csv
+pkgver=0.002
+pkgrel=1
+pkgdesc="Handle CSV data in perl6"
+arch=('any')
+depends=('perl6' 'perl6-file-temp' 'perl6-slang-tuxic')
+checkdepends=('perl')
+makedepends=('alacryd' 'git')
+groups=('perl6')
+url="https://github.com/Tux/CSV"
+license=('PerlArtistic')
+source=($pkgname-$pkgver::git+https://github.com/Tux/CSV)
+sha256sums=('SKIP')
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ msg2 'Running tests...'
+ PERL6LIB=lib prove -r -e perl6 t/
+}
+
+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 '{}' \;
+}