summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvy Foster2016-06-09 22:21:15 -0500
committerIvy Foster2016-06-09 22:21:15 -0500
commit319a37570093bfdaa28845631163cf013f2c6322 (patch)
tree3832a20eca9e0bcf4f096a6da65fe3a54edaabdc
downloadaur-319a37570093bfdaa28845631163cf013f2c6322.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..2d89890ed82
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = libnsgif-git
+ pkgdesc = Decoding library for BMP and ICO image file formats
+ pkgver = 0.1.3.r0.gee6294d
+ pkgrel = 1
+ url = http://www.netsurf-browser.org/projects/libnsgif/
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = netsurf-buildsystem-git
+ provides = libnsgif
+ conflicts = libnsgif
+ source = git://git.netsurf-browser.org/libnsgif.git
+ sha256sums = SKIP
+
+pkgname = libnsgif-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3ee41fbeab1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Ivy Foster <ivy.foster@gmail.com>
+
+pkgname='libnsgif-git'
+pkgver=0.1.3.r0.gee6294d
+pkgrel=1
+pkgdesc='Decoding library for BMP and ICO image file formats'
+url='http://www.netsurf-browser.org/projects/libnsgif/'
+license=('MIT')
+
+makedepends=('netsurf-buildsystem-git')
+provides=('libnsgif')
+conflicts=('libnsgif')
+
+arch=('x86_64' 'i686')
+source=('git://git.netsurf-browser.org/libnsgif.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd libnsgif
+ git describe --long | sed 's:release/::; s:-\([0-9]\+\)-:.r\1.:'
+}
+
+prepare() {
+ sed 's:-D_BSD_SOURCE::' -i libnsgif/Makefile
+}
+
+build() {
+ cd libnsgif
+ make PREFIX=/usr INCLUDEDIR=include \
+ LIBDIR=lib COMPONENT_TYPE=lib-shared
+}
+
+check() {
+ make -C libnsgif PREFIX=/usr INCLUDEDIR=include \
+ LIBDIR=lib COMPONENT_TYPE=lib-shared test
+}
+
+package() {
+ cd libnsgif
+ make DESTDIR="$pkgdir" PREFIX=/usr INCLUDEDIR=include \
+ LIBDIR=lib COMPONENT_TYPE=lib-shared install
+ install -Dm644 COPYING \
+ "$pkgdir/usr/share/licenses/netsurf/libnsgif"
+}