diff options
author | ehs2013 | 2016-06-19 05:08:28 +0800 |
---|---|---|
committer | ehs2013 | 2016-06-19 05:08:28 +0800 |
commit | a52f7762e5fac948828bb97108f56b547406c164 (patch) | |
tree | 846eefddbfcc64cf8b2495215a052cd66687a7b8 | |
download | aur-a52f7762e5fac948828bb97108f56b547406c164.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..384c92911478 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = mingw-w64-libsodium + pkgdesc = P(ortable|ackageable) NaCl-based crypto library (mingw-w64) + pkgver = 1.0.10 + pkgrel = 1 + url = https://github.com/jedisct1/libsodium + arch = any + license = custom:ISC + makedepends = mingw-w64-gcc + depends = mingw-w64-crt + options = !strip + options = !buildflags + options = staticlibs + source = http://download.dnscrypt.org/libsodium/releases/libsodium-1.0.10.tar.gz + sha512sums = ff52e7f25787cc858e8d26be10913c689bd3dd394c8e163133920141be67a292a1dba066a1037e83cf0ced155a1554f07f24c2f33a7a6aa52521d39f537cd515 + +pkgname = mingw-w64-libsodium + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4751acf647fb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: namelessjon <jonathan.stott@gmail.com> +# Contributor: Alessio Sergi <asergi at archlinux dot us> + +pkgname=mingw-w64-libsodium +_pkgname=libsodium +pkgver=1.0.10 +pkgrel=1 +pkgdesc="P(ortable|ackageable) NaCl-based crypto library (mingw-w64)" +arch=('any') +url="https://github.com/jedisct1/libsodium" +license=('custom:ISC') +depends=('mingw-w64-crt') +makedepends=('mingw-w64-gcc' 'mingw-w64-configure') +source=("http://download.dnscrypt.org/$_pkgname/releases/$_pkgname-${pkgver}.tar.gz") +sha512sums=('ff52e7f25787cc858e8d26be10913c689bd3dd394c8e163133920141be67a292a1dba066a1037e83cf0ced155a1554f07f24c2f33a7a6aa52521d39f537cd515') +options=(!strip !buildflags staticlibs) + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "$_pkgname-$pkgver" + + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure .. + make + popd + done +} + +package() { + cd "$_pkgname-$pkgver" + + 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 +} + +# vim:set ts=2 sw=2 et: |