From 8fb9e478be9d2a8a7c96e992d5e0a0a53092fc26 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 31 Oct 2013 18:57:59 +0000 Subject: main/iniparser: moved from testing --- main/iniparser/APKBUILD | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 main/iniparser/APKBUILD (limited to 'main/iniparser/APKBUILD') 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 +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" -- cgit v1.2.3