archrelease: copy trunk to community-any
[ArchLinux/community.git] / libconfig / trunk / PKGBUILD
blobabc0b5999266cce4b16e8673cd57ec6d3685741f
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Ray Rashif <schiv@archlinux.org>
3 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 # Contributor: Roman Kyrylych <roman@archlinux.org>
5 # Contributor: scippio <scippio@seznam.cz>
7 pkgname=libconfig
8 pkgver=1.7.3
9 pkgrel=2
10 pkgdesc="C/C++ Configuration File Library"
11 arch=(x86_64)
12 url="https://github.com/hyperrealm/libconfig"
13 license=(LGPL2.1)
14 depends=(
15   gcc-libs
16   glibc
18 makedepends=(texinfo)
19 provides=(
20   libconfig++.so
21   libconfig.so
23 source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
24 sha512sums=('3749bf9eb29bab0f6b14f4fc759f0c419ed27a843842aaabed1ec1fbe0faa8c93322ff875ca1291d69cb28a39ece86d512aec42c2140d566c38c56dc616734f4')
25 b2sums=('94301be4d6e472fc9daeac7a04074855737ddda94bb5748cd0087fafe192cf674ea1c020808ebf855372188b6b27a57ed185323fa26988bb1fccde0566617cba')
27 prepare() {
28   cd $pkgname-$pkgver
29   autoreconf -fiv
32 build() {
33   cd $pkgname-$pkgver
34   ./configure --prefix=/usr
35   # prevent excessive overlinking due to libtool
36   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
37   make
40 package() {
41   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
42   rm "$pkgdir/usr/share/info/dir"
43   install -vDm 644 $pkgname-$pkgver/{AUTHORS,ChangeLog,NEWS,README,TODO} -t "$pkgdir/usr/share/doc/$pkgname/"
45 # vim:set ts=2 sw=2 et: