aboutsummaryrefslogtreecommitdiffstats
path: root/main/iniparser
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-31 18:57:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-11-01 08:42:42 +0000
commit8fb9e478be9d2a8a7c96e992d5e0a0a53092fc26 (patch)
tree5cf5b3ce55c5897344727055305e334d2d6f8102 /main/iniparser
parentbf575521c7085a32c0781f4668bcfdfdc0397046 (diff)
downloadaports-8fb9e478be9d2a8a7c96e992d5e0a0a53092fc26.tar.bz2
aports-8fb9e478be9d2a8a7c96e992d5e0a0a53092fc26.tar.xz
main/iniparser: moved from testing
Diffstat (limited to 'main/iniparser')
-rw-r--r--main/iniparser/APKBUILD52
-rw-r--r--main/iniparser/rpath.patch13
2 files changed, 65 insertions, 0 deletions
diff --git a/main/iniparser/APKBUILD b/main/iniparser/APKBUILD
new file mode 100644
index 0000000000..b5bab989f7
--- /dev/null
+++ b/main/iniparser/APKBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=iniparser
+pkgver=3.1
+pkgrel=0
+pkgdesc="C library for parsing "INI-style" files"
+url="http://ndevilla.free.fr/iniparser/"
+arch="all"
+license="MIT"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://ndevilla.free.fr/iniparser/iniparser-$pkgver.tar.gz
+ rpath.patch"
+
+_builddir="$srcdir"/iniparser
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make CC="${CC:-gcc}" CFLAGS="${CFLAGS}" LDFLAGS="$LDFLAGS" \
+ libiniparser.so || return 1
+}
+
+package() {
+ cd "$_builddir"
+ install -d "$pkgdir"/usr/lib "$pkgdir"/usr/include || return 1
+ install -m 644 src/dictionary.h "$pkgdir"/usr/include/dictionary.h \
+ || return 1
+ install -m 644 src/iniparser.h "$pkgdir"/usr/include/iniparser.h \
+ || return 1
+ install -m 755 libiniparser.so.0 "$pkgdir"/usr/lib/libiniparser.so.0 \
+ || return 1
+ ln -s libiniparser.so.0 "$pkgdir"/usr/lib/libiniparser.so \
+ || return 1
+}
+
+md5sums="0aa4f995468ed390caf323f50a285bc3 iniparser-3.1.tar.gz
+67f622f6a1e5d4631c5c7db6c1f19fcb rpath.patch"
+sha256sums="aedf23881b834519aea5e861b2400606d211da049cd59d3cfb4568e0d9eff5c5 iniparser-3.1.tar.gz
+8704113db821b23426861a33792003a846fbc5b27d23ad204bedcbeb7635a984 rpath.patch"
+sha512sums="8fd8324c5629fdc3e3eff00afb5f0832402ccc760c5b92db82aa29b340ec891419ca2c4fee3a4d4d67cf9bc51c76b095bc0c458e087c2b8e72ac36867c47ae86 iniparser-3.1.tar.gz
+611f8c4a2499d97b9cf86914df09e15bb619fdaedb44195106afbc6376dcf08528ed28102727215ea2191540f6523f689050fc40b71e0b0dc2fdb5e9040ed663 rpath.patch"
diff --git a/main/iniparser/rpath.patch b/main/iniparser/rpath.patch
new file mode 100644
index 0000000000..2f6e25c6d1
--- /dev/null
+++ b/main/iniparser/rpath.patch
@@ -0,0 +1,13 @@
+--- ./Makefile.orig 2013-10-31 10:10:47.200997664 +0000
++++ ./Makefile 2013-10-31 10:13:18.609360807 +0000
+@@ -11,8 +11,8 @@
+ ARFLAGS = rcv
+
+ SHLD = ${CC} ${CFLAGS}
+-LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib
+-LDFLAGS = -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib
++LDSHFLAGS = -shared -Wl,-Bsymbolic
++LDFLAGS =
+
+ # Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX)
+ # RANLIB = ranlib