summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2016-01-07 17:03:43 -0800
committerAndy Weidenbaum2016-01-07 17:03:43 -0800
commit23d51e484c1bfd778e3982b3a150a498a7413ad7 (patch)
tree2216e33f1d8fb4003cd490844cff2321bd702df2
downloadaur-23d51e484c1bfd778e3982b3a150a498a7413ad7.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..b788297ede0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Fri Jan 8 01:03:17 UTC 2016
+pkgbase = libmarpa
+ pkgdesc = Marpa parse engine C library
+ pkgver = 8.3.0
+ pkgrel = 1
+ url = https://github.com/jeffreykegler/libmarpa
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = autoconf
+ makedepends = automake
+ makedepends = libtool
+ makedepends = make
+ makedepends = perl
+ makedepends = texlive-bin
+ source = libmarpa-8.3.0::git+https://github.com/jeffreykegler/libmarpa
+ sha256sums = SKIP
+
+pkgname = libmarpa
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7bca75b67c1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=libmarpa
+pkgver=8.3.0
+pkgrel=1
+pkgdesc="Marpa parse engine C library"
+arch=('i686' 'x86_64')
+makedepends=('autoconf' 'automake' 'libtool' 'make' 'perl' 'texlive-bin')
+url="https://github.com/jeffreykegler/libmarpa"
+license=('MIT')
+source=($pkgname-$pkgver::git+https://github.com/jeffreykegler/libmarpa)
+sha256sums=('SKIP')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ msg2 'Preparing distribution...'
+ make dist
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver/dist"
+
+ msg2 'Building...'
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --libexecdir=/usr/lib/libmarpa \
+ --sysconfdir=/etc \
+ --sharedstatedir=/usr/share/libmarpa \
+ --localstatedir=/var/lib/libmarpa \
+ --with-gnu-ld
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver/dist"
+
+ msg2 'Installing license...'
+ install -Dm 644 AUTHORS COPYING{,.LESSER} \
+ -t "$pkgdir/usr/share/licenses/libmarpa"
+
+ msg2 'Installing documentation...'
+ install -Dm 644 README{,.INSTALL} -t "$pkgdir/usr/share/doc/libmarpa"
+
+ msg2 'Installing...'
+ make DESTDIR="$pkgdir" install
+}