summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2016-01-04 14:17:08 -0800
committerAndy Weidenbaum2016-01-04 14:17:08 -0800
commit5e3752bd80b048d25ba6156c7bf21abeb0ab05a1 (patch)
treefe6cc0b2d803b8cf6cefaf3cd8cd6c02c96a354d
downloadaur-5e3752bd80b048d25ba6156c7bf21abeb0ab05a1.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD49
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..661fef38123
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Mon Jan 4 22:16:59 UTC 2016
+pkgbase = perl6-grammar-parsefail
+ pkgdesc = Syntax error reporting for Perl 6 grammars
+ pkgver = 0.1
+ pkgrel = 1
+ url = https://github.com/ShimmerFairy/grammar-parsefail
+ arch = any
+ groups = perl6
+ license = PerlArtistic
+ checkdepends = perl
+ makedepends = alacryd
+ makedepends = git
+ depends = rakudo
+ source = perl6-grammar-parsefail-0.1::git+https://github.com/ShimmerFairy/grammar-parsefail
+ sha256sums = SKIP
+
+pkgname = perl6-grammar-parsefail
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..062765a9eda
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=perl6-grammar-parsefail
+pkgver=0.1
+pkgrel=1
+pkgdesc="Syntax error reporting for Perl 6 grammars"
+arch=('any')
+depends=('rakudo')
+checkdepends=('perl')
+makedepends=('alacryd' 'git')
+groups=('perl6')
+url="https://github.com/ShimmerFairy/grammar-parsefail"
+license=('PerlArtistic')
+source=($pkgname-$pkgver::git+https://github.com/ShimmerFairy/grammar-parsefail)
+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.pod6 -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"
+}