archrelease: copy trunk to extra-x86_64
[arch-packages.git] / iniparser / trunk / PKGBUILD
blobb2221afb1cb769f839e2461f266718f7653eacc2
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Maintainer: Roman Kyrylych <Roman.Kyrylych@gmail.com>
3 # Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
5 pkgname=iniparser
6 pkgver=4.1
7 pkgrel=3
8 pkgdesc="A free stand-alone ini file parsing library written in portable ANSI C"
9 arch=('x86_64')
10 url="http://ndevilla.free.fr/iniparser/"
11 license=('MIT')
12 depends=('glibc')
13 provides=('libiniparser.so')
14 makedepends=('chrpath')
15 source=($pkgname-$pkgver.tar.gz::https://github.com/ndevilla/iniparser/archive/v$pkgver.tar.gz)
16 md5sums=('e43b722c71b399ab17c329c04dbdf1d7')
17 sha256sums=('960daa800dd31d70ba1bacf3ea2d22e8ddfc2906534bf328319495966443f3ae')
19 build() {
20   cd $pkgname-$pkgver
21   make
24 package() {
25   cd $pkgname-$pkgver
26   install -Dm644 src/iniparser.h "$pkgdir"/usr/include/iniparser.h
27   install -Dm644 src/dictionary.h "$pkgdir"/usr/include/dictionary.h
28   install -Dm644 libiniparser.a "$pkgdir"/usr/lib/libiniparser.a
29   install -Dm644 libiniparser.so.1 "$pkgdir"/usr/lib/libiniparser.so.1
30   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/iniparser/LICENSE
31   ln -sf libiniparser.so.1 "$pkgdir"/usr/lib/libiniparser.so
32   chrpath -d "$pkgdir"/usr/lib/libiniparser.so