summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesper Jensen2015-08-01 02:28:51 +0200
committerJesper Jensen2015-08-01 02:35:49 +0200
commit8f1b07e6d6de3c8152a6fc58b45f2764e31396d2 (patch)
tree2124fbdcd33cff29ddf7e8d44e159603f033b322
downloadaur-8f1b07e6d6de3c8152a6fc58b45f2764e31396d2.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD34
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..63347d7c99a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = iniparser-git
+ pkgdesc = A free stand-alone ini file parsing library written in portable ANSI C
+ pkgver = 73
+ pkgrel = 1
+ url = https://github.com/ndevilla/iniparser
+ arch = any
+ license = MIT
+ makedepends = git
+ provides = iniparser
+ conflicts = iniparser
+ source = git://github.com/ndevilla/iniparser.git
+ md5sums = SKIP
+
+pkgname = iniparser-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d154d26c3a5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Jesper Jensen <delusionallogic at gmail dot com>
+
+_pkgname=iniparser
+pkgname=${_pkgname}-git
+pkgver=73
+pkgrel=1
+pkgdesc='A free stand-alone ini file parsing library written in portable ANSI C'
+arch=('i686' 'x86_64' 'armv7h')
+url="https://github.com/ndevilla/${_pkgname}"
+license=('MIT')
+depends=('glibc')
+makedepends=('git')
+optdepends=()
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("git://github.com/ndevilla/${_pkgname}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git rev-list --count HEAD
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ make PREFIX=/usr
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -D -m755 libiniparser.so.0 "${pkgdir}/usr/lib/libiniparser.so.0"
+ ln -s "libiniparser.so.0" "${pkgdir}/usr/lib/libiniparser.so"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}