summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvy Foster2016-06-09 22:26:06 -0500
committerIvy Foster2016-06-09 22:26:06 -0500
commit49362db8dc1f43db623e295b1cba1383479f8d57 (patch)
tree549407da55034112d86db324e1cd89295f93f231
downloadaur-49362db8dc1f43db623e295b1cba1383479f8d57.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD44
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7e3928f133e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = libparserutils-git
+ pkgdesc = Library for building efficient parsers
+ pkgver = 0.2.3.r0.ga191c15
+ pkgrel = 1
+ url = http://www.netsurf-browser.org/projects/libparserutils/
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = netsurf-buildsystem-git
+ provides = libparserutils
+ conflicts = libparserutils
+ source = git://git.netsurf-browser.org/libparserutils.git
+ sha256sums = SKIP
+
+pkgname = libparserutils-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1585c9aa57f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Ivy Foster <ivy.foster@gmail.com>
+
+pkgname='libparserutils-git'
+pkgver=0.2.3.r0.ga191c15
+pkgrel=1
+pkgdesc='Library for building efficient parsers'
+url='http://www.netsurf-browser.org/projects/libparserutils/'
+license=('MIT')
+
+makedepends=('netsurf-buildsystem-git')
+provides=('libparserutils')
+conflicts=('libparserutils')
+
+arch=('x86_64' 'i686')
+source=('git://git.netsurf-browser.org/libparserutils.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd libparserutils
+ git describe --long | sed 's:release/::; s:-\([0-9]\+\)-:.r\1.:'
+}
+
+prepare() {
+ sed 's:-D_BSD_SOURCE::' -i libparserutils/Makefile
+}
+
+build() {
+ cd libparserutils
+ make PREFIX=/usr INCLUDEDIR=include \
+ LIBDIR=lib COMPONENT_TYPE=lib-shared
+}
+
+check() {
+ make -C libparserutils PREFIX=/usr INCLUDEDIR=include \
+ LIBDIR=lib COMPONENT_TYPE=lib-shared test
+}
+
+package() {
+ cd libparserutils
+ make DESTDIR="$pkgdir" PREFIX=/usr INCLUDEDIR=include \
+ LIBDIR=lib COMPONENT_TYPE=lib-shared install
+ install -Dm644 COPYING \
+ "$pkgdir/usr/share/licenses/netsurf/libparserutils"
+}