diff options
author | Michel Zou | 2019-11-29 11:11:02 +0100 |
---|---|---|
committer | Michel Zou | 2019-11-29 11:11:02 +0100 |
commit | 56036bd398977eb218c8cd76ca545fba29e7297c (patch) | |
tree | b43c9e3c18f453268222f0a1348c0885429e46b2 | |
download | aur-56036bd398977eb218c8cd76ca545fba29e7297c.tar.gz |
1.0
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 58 |
2 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..43ed801fa938 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mingw-w64-libbacktrace-git + pkgdesc = Library to produce symbolic backtraces (mingw-w64) + pkgver = r21.5a99ff7 + pkgrel = 1 + url = https://github.com/ianlancetaylor/libbacktrace + arch = any + license = BSD + makedepends = mingw-w64-configure + makedepends = git + depends = mingw-w64-zlib + provides = mingw-w64-libbacktrace + conflicts = mingw-w64-libbacktrace + options = !buildflags + options = !strip + options = staticlibs + source = git+https://github.com/ianlancetaylor/libbacktrace.git + sha256sums = SKIP + +pkgname = mingw-w64-libbacktrace-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..018938651f6e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +pkgname=mingw-w64-libbacktrace-git +pkgver=r21.5a99ff7 +pkgrel=1 +pkgdesc="Library to produce symbolic backtraces (mingw-w64)" +arch=('any') +url="https://github.com/ianlancetaylor/libbacktrace" +license=('BSD') +depends=('mingw-w64-zlib') +makedepends=('mingw-w64-configure' 'git') +provides=('mingw-w64-libbacktrace') +conflicts=('mingw-w64-libbacktrace') +options=('!buildflags' '!strip' 'staticlibs') +source=("git+https://github.com/ianlancetaylor/libbacktrace.git") +sha256sums=('SKIP') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +pkgver() { + cd "libbacktrace" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare () { + cd "libbacktrace" + # dont allow undefined symbols to build the dll + sed -i "83ilibbacktrace_la_LDFLAGS = -no-undefined" Makefile.am + # unknown macro AM_ENABLE_MULTILIB + sed -i "s|AM_ENABLE_MULTILIB(, ..)|AC_MSG_NOTICE(["hello"])|g" configure.ac + autoreconf -vfi +} + +build() { + cd "libbacktrace" + for _arch in ${_architectures}; do + mkdir -p "build-${_arch}" && pushd "build-${_arch}" + OBJCOPY=/usr/bin/${_arch}-objcopy ${_arch}-configure .. + make + popd + done +} + +check() { + cd "libbacktrace" + for _arch in ${_architectures}; do + cd "$srcdir/libbacktrace/build-${_arch}" + make check + done +} + +package() { + for _arch in ${_architectures}; do + cd "$srcdir/libbacktrace/build-${_arch}" + make DESTDIR="$pkgdir/" install + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} + |