diff options
author | Andrew Sun | 2018-07-29 22:07:24 -0400 |
---|---|---|
committer | Andrew Sun | 2018-07-29 22:07:24 -0400 |
commit | cd8bd9d5800f0b501acc2946fb0283bf448f87bc (patch) | |
tree | 9c40cea8a194e73f7a6f89bb2f092792a1cf46f1 | |
download | aur-cd8bd9d5800f0b501acc2946fb0283bf448f87bc.tar.gz |
add mingw-w64-npth (version 1.6)
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..99d5cdb5c616 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mingw-w64-npth + pkgdesc = New portable threads library (mingw-w64) + pkgver = 1.6 + pkgrel = 1 + url = http://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git + arch = any + license = LGPL + makedepends = mingw-w64-configure + depends = mingw-w64-crt + options = !strip + options = !buildflags + options = staticlibs + options = !libtool + source = ftp://ftp.gnupg.org/gcrypt/npth/npth-1.6.tar.bz2 + source = ftp://ftp.gnupg.org/gcrypt/npth/npth-1.6.tar.bz2.sig + sha256sums = 1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1 + sha256sums = SKIP + +pkgname = mingw-w64-npth + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1c4a27612149 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Andrew Sun <adsun701@gmail.com> + +pkgname=mingw-w64-npth +_pkgname=npth +pkgver=1.6 +pkgrel=1 +pkgdesc="New portable threads library (mingw-w64)" +arch=('any') +url="http://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git" +license=('LGPL') +makedepends=('mingw-w64-configure') +depends=('mingw-w64-crt') +options=('!strip' '!buildflags' 'staticlibs' '!libtool') +source=("ftp://ftp.gnupg.org/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2"{,.sig}) +sha256sums=('1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1' + 'SKIP') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}/" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure \ + .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/${_pkgname}-${pkgver}/build-${_arch}" + # create ${pkgdir}/usr/${_arch} dir, or install will complain due to def file not being installed + mkdir -p ${pkgdir}/usr/${_arch}/{bin,include,lib} + make DESTDIR="${pkgdir}" install + ${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "${pkgdir}"/usr/${_arch}/lib/*.a + done +} |