summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicola Murino2018-10-22 18:56:17 +0200
committerNicola Murino2018-10-22 18:56:17 +0200
commiteed1642a09ffa9d9b9bac9dca7113ee46d4a1c07 (patch)
tree02cd5331a8a4369f46db4894153b82e170507911
downloadaur-eed1642a09ffa9d9b9bac9dca7113ee46d4a1c07.tar.gz
Initial version
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD39
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..70dea8fce87
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = mingw-w64-unifdef
+ pkgdesc = Remove #ifdef'ed lines (mingw-w64)
+ pkgver = 2.11.23.1cca442
+ pkgrel = 1
+ url = http://dotat.at/prog/unifdef/
+ arch = any
+ license = GPL
+ makedepends = mingw-w64-gcc
+ depends = mingw-w64-crt
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ source = https://dotat.at/prog/unifdef/unifdef-2.11.23.1cca442.tar.xz
+ sha256sums = a14bcc707cd6c145cca6a0f66a86afb7489c642a4ecc54d61137bb8c6aaf11e6
+
+pkgname = mingw-w64-unifdef
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4486d319838
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: drakkan <nicola.murino at gmail dot com>
+pkgname=mingw-w64-unifdef
+pkgver=2.11.23.1cca442
+pkgrel=1
+pkgdesc="Remove #ifdef'ed lines (mingw-w64)"
+arch=('any')
+url="http://dotat.at/prog/unifdef/"
+license=('GPL')
+makedepends=('mingw-w64-gcc')
+depends=('mingw-w64-crt')
+options=('!strip' '!buildflags' 'staticlibs')
+source=("https://dotat.at/prog/unifdef/unifdef-$pkgver.tar.xz")
+sha256sums=('a14bcc707cd6c145cca6a0f66a86afb7489c642a4ecc54d61137bb8c6aaf11e6')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ export CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"
+ export CXXFLAGS=${CFLAGS}
+ for _arch in ${_architectures}; do
+ [[ -d "build-${_arch}" ]] && rm -rf "build-${_arch}"
+ cp -rf "$srcdir/unifdef-${pkgver}" "${srcdir}/build-${_arch}"
+ export CC=${_arch}-gcc
+
+ pushd build-${_arch}
+ make -f win32/Makefile.mingw
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/build-${_arch}"
+ install -Dm755 unifdef.exe "${pkgdir}/usr/${_arch}/bin/unifdef.exe"
+ ${_arch}-strip --strip-all "$pkgdir"/usr/${_arch}/bin/*.exe
+ done
+}
+
+# vim: ts=2 sw=2 et: