diff options
author | Michel Zou | 2020-02-17 19:02:33 +0100 |
---|---|---|
committer | Michel Zou | 2020-02-17 19:02:33 +0100 |
commit | 1600d19dfdd2bc0087ed7bc9d5495f20bd8e097f (patch) | |
tree | 06e3c6ee7c81683363d78d5e0675b948e8157cb3 | |
download | aur-1600d19dfdd2bc0087ed7bc9d5495f20bd8e097f.tar.gz |
1.3.9
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bc1adf110988 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = mingw-w64-rhash + pkgdesc = Utility for verifying hash sums of files (mingw-w64) + pkgver = 1.3.9 + pkgrel = 1 + url = https://github.com/rhash/RHash + arch = any + license = BSD + makedepends = mingw-w64-gcc + depends = mingw-w64-crt + options = !buildflags + options = !strip + options = staticlibs + source = https://github.com/rhash/RHash/archive//v1.3.9.tar.gz + sha256sums = 42b1006f998adb189b1f316bf1a60e3171da047a85c4aaded2d0d26c1476c9f6 + +pkgname = mingw-w64-rhash + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..999c345765f1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +pkgname=mingw-w64-rhash +pkgver=1.3.9 +pkgrel=1 +pkgdesc="Utility for verifying hash sums of files (mingw-w64)" +url="https://github.com/rhash/RHash" +license=('BSD') +arch=('any') +depends=('mingw-w64-crt') +makedepends=('mingw-w64-gcc') +options=('!buildflags' '!strip' 'staticlibs') +source=("https://github.com/rhash/RHash/archive//v${pkgver}.tar.gz") +sha256sums=('42b1006f998adb189b1f316bf1a60e3171da047a85c4aaded2d0d26c1476c9f6') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + for _arch in ${_architectures}; do + cp -r "$srcdir/RHash-${pkgver}" build-${_arch} && pushd build-${_arch} + ./configure --cc=${_arch}-gcc --ar=${_arch}-ar --prefix=/usr/${_arch} --target=${_arch} --extra-cflags="-D_FORTIFY_SOURCE=2 -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4" --extra-ldflags="-Wl,-O1,--sort-common,--as-needed -fstack-protector" + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "$srcdir/build-${_arch}" + make install-lib-headers install-lib-shared DESTDIR="$pkgdir" + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |