diff options
author | David Schury | 2015-08-15 00:19:30 +0200 |
---|---|---|
committer | David Schury | 2015-08-15 00:19:30 +0200 |
commit | 598fc8056fa28cefcf657a477c58793a19316628 (patch) | |
tree | 8df3cecf75afe82623d71bb0d5d8c3caa4ac7186 /PKGBUILD | |
download | aur-598fc8056fa28cefcf657a477c58793a19316628.tar.gz |
Initial import.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b20315648580 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: David Schury <dasc@posteo.de> +pkgname=mingw-w64-libsigc++ +_pkgname=libsigc++ +pkgver=2.4.1 +pkgrel=1 +pkgdesc="Libsigc++ implements a full callback system for use in widget libraries - V2 (mingw-w64)" +arch=('any') +url="http://libsigc.sourceforge.net/" +license=('LGPL') +makedepends=('mingw-w64-gcc' 'mingw-w64-configure') +depends=('mingw-w64-crt') +options=('!strip' '!buildflags' 'staticlibs') +source=("http://ftp.gnome.org/pub/GNOME/sources/$_pkgname/${pkgver%.*}/$_pkgname-${pkgver}.tar.xz") +md5sums=('55945ba6e1652f89999e910f6b52047c') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "${srcdir}/$_pkgname-$pkgver/" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure \ + --prefix=/usr/${_arch} \ + --enable-shared \ + --enable-static \ + --disable-documentation + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/$_pkgname-$pkgver/build-${_arch}" + make DESTDIR="${pkgdir}" install + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |