diff options
author | Thibault Porteboeuf | 2015-08-13 08:29:36 +0200 |
---|---|---|
committer | Thibault Porteboeuf | 2015-08-13 08:29:36 +0200 |
commit | fffe8cf23c98a24abbea590d3ccd812c650e7ac9 (patch) | |
tree | 127b9ef3a1850d0eab4a99b4494661113834ea7b /PKGBUILD | |
download | aur-fffe8cf23c98a24abbea590d3ccd812c650e7ac9.tar.gz |
Re-uploaded package from aur-mirror to aur4 + upgraded from 7.7 -> 7.9.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8976656bc9cc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +pkgname=mingw-w64-gdb +pkgver=7.9.1 +pkgrel=1 +pkgdesc="The GNU Debugger (mingw-w64)" +arch=(any) +url="http://www.gnu.org/software/gdb/" +license=('LGPL') +depends=('mingw-w64-crt') +makedepends=('mingw-w64-gcc' 'texinfo' 'mingw-w64-expat' 'mingw-w64-zlib' 'mingw-w64-readline') +options=('staticlibs' '!buildflags' '!strip') +source=("http://ftp.gnu.org/gnu/gdb/gdb-${pkgver}.tar.xz") +md5sums=('35374c77a70884eb430c97061053a36e') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "$srcdir/gdb-$pkgver" + for _arch in ${_architectures}; do + unset LDFLAGS + mkdir -p build-${_arch} && pushd build-${_arch} + ../configure --prefix=/usr/${_arch} \ + --host=${_arch} \ + --target=${_arch} \ + --enable-lto \ + --with-system-readline \ + --with-expat + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "$srcdir"/gdb-${pkgver}/build-${_arch} + make install DESTDIR="$pkgdir" + rm -rf "$pkgdir"/usr/${_arch}/share/{man,info,locale} + rm -rf "$pkgdir"/usr/${_arch}/lib + rm -rf "$pkgdir"/usr/${_arch}/include + ${_arch}-strip "$pkgdir"/usr/${_arch}/bin/*.exe + done +} |