archrelease: copy trunk to extra-x86_64
[arch-packages.git] / iniparser / trunk / PKGBUILD
blobb949363eeaebdcab7fba23d03b5cb9420fc0b906
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=4
8 pkgdesc='A free stand-alone ini file parsing library written in portable ANSI C'
9 arch=('x86_64')
10 url='https://github.com/ndevilla/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}"
22   make
25 package() {
26   cd "${pkgname}-${pkgver}"
28   install -Dm0644 src/iniparser.h "${pkgdir}"/usr/include/iniparser.h
29   install -Dm0644 src/dictionary.h "${pkgdir}"/usr/include/dictionary.h
30   install -Dm0644 libiniparser.so.1 "$pkgdir"/usr/lib/libiniparser.so.1
31   install -Dm0644 LICENSE "${pkgdir}"/usr/share/licenses/iniparser/LICENSE
32   ln -sf libiniparser.so.1 "${pkgdir}"/usr/lib/libiniparser.so
33   chrpath -d "${pkgdir}"/usr/lib/libiniparser.so