aboutsummaryrefslogtreecommitdiffstats
path: root/main/iniparser/APKBUILD
blob: 316aa74cd8333e19ef6968b14e3ab51ffc4ab8cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iniparser
pkgver=4.1
pkgrel=0
pkgdesc="C library for parsing "INI-style" files"
url="http://ndevilla.free.fr/iniparser/"
arch="all"
license="MIT"
depends=""
makedepends="bash"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/ndevilla/iniparser/archive/v$pkgver.tar.gz
	rpath.patch"
builddir="$srcdir"/iniparser-$pkgver

build() {
	cd "$builddir"
#	make CC="${CC:-gcc}" CFLAGS="${CFLAGS} -fPIC" LDFLAGS="$LDFLAGS" \
#		libiniparser.so
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	install -d "$pkgdir"/usr/lib "$pkgdir"/usr/include
	install -m 644 src/dictionary.h "$pkgdir"/usr/include/dictionary.h
	install -m 644 src/iniparser.h "$pkgdir"/usr/include/iniparser.h
	install -m 755 libiniparser.so.1 "$pkgdir"/usr/lib/libiniparser.so.1
	ln -s libiniparser.so.1 "$pkgdir"/usr/lib/libiniparser.so
}

sha512sums="a8125aaaead1f9dfde380fa1e45bae31ca2312be029f2c53b4072cb3b127d16578a95c7c0aee1e3dda5e7b8db7a865ba6dfe8a1d80eb673061b3babef744e968  iniparser-4.1.tar.gz
db7bdab6f8faafd47c8b50104e1a461fbd9324b75482b1455a8fc059c07278e7e60f088a3f712b0ade05a9bb989168d17684455b9863018f22a61e0190a888c6  rpath.patch"