blob: 01aaa7d32f93509b4eae93ac0896050154907f9f (
plain)
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: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
pkgname=mingw-w64-libconfig
pkgver=1.7.3
pkgrel=1
pkgdesc="C/C++ Configuration File Library (mingw-w64)"
arch=(any)
url="http://hyperrealm.github.io/libconfig"
license=('LGPL')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-configure')
options=('staticlibs' '!strip' '!buildflags')
source=("http://hyperrealm.github.io/libconfig/dist/${pkgname#mingw-w64-}-${pkgver}.tar.gz")
md5sums=('15ec701205f91f21b1187f8b61e0d64f')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "$srcdir/${pkgname#mingw-w64-}-$pkgver"
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-configure --disable-examples ..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir/${pkgname#mingw-w64-}-$pkgver/build-${_arch}"
make DESTDIR="$pkgdir" install
rm "$pkgdir/usr/${_arch}/share/info/dir"
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
rm -r "$pkgdir/usr/${_arch}/share/info"
done
}
|