diff options
author | Drobot Viktor | 2016-12-21 21:16:33 +0300 |
---|---|---|
committer | Drobot Viktor | 2016-12-21 21:16:33 +0300 |
commit | 0a7e8bd2a25aef647d13bb74bf3153b418cc84f6 (patch) | |
tree | 630208fbf518a933c943133468d7433f49c6cdaf | |
download | aur-0a7e8bd2a25aef647d13bb74bf3153b418cc84f6.tar.gz |
The first release of mingw-w64 version of libconfig
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..27a9302659eb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = mingw-w64-libconfig + pkgdesc = C/C++ Configuration File Library (mingw-w64) + pkgver = 1.5 + pkgrel = 1 + url = http://hyperrealm.com/libconfig/libconfig.html + arch = any + license = LGPL + makedepends = mingw-w64-configure + makedepends = mingw-w64-gcc + depends = automake-1.14 + depends = mingw-w64-crt + depends = gcc-libs + depends = texinfo + options = staticlibs + options = !strip + options = !buildflags + source = http://pkgs.fedoraproject.org/repo/pkgs/libconfig/libconfig-1.5.tar.gz/a939c4990d74e6fc1ee62be05716f633/libconfig-1.5.tar.gz + md5sums = a939c4990d74e6fc1ee62be05716f633 + +pkgname = mingw-w64-libconfig + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3a2ee97a3146 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com +pkgname=mingw-w64-libconfig +pkgver=1.5 +pkgrel=1 +pkgdesc="C/C++ Configuration File Library (mingw-w64)" +arch=(any) +url="http://hyperrealm.com/libconfig/libconfig.html" +license=('LGPL') +depends=('automake-1.14' 'mingw-w64-crt' 'gcc-libs' 'texinfo') +makedepends=('mingw-w64-configure' 'mingw-w64-gcc') +options=('staticlibs' '!strip' '!buildflags') +source=("http://pkgs.fedoraproject.org/repo/pkgs/libconfig/libconfig-1.5.tar.gz/a939c4990d74e6fc1ee62be05716f633/libconfig-1.5.tar.gz") +md5sums=('a939c4990d74e6fc1ee62be05716f633') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "$srcdir/libconfig-$pkgver" + touch "lib/scanner.l" + + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure + cp "../lib/libconfig.h" "lib/" + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "$srcdir/libconfig-$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" + done +} |