diff options
author | Mykola Dimura | 2017-03-11 16:12:57 +0100 |
---|---|---|
committer | Mykola Dimura | 2017-03-11 16:12:57 +0100 |
commit | 21f6809f6b78be43aa97f9bb75e30327a24aa1d4 (patch) | |
tree | 9cd976a7cd6c125d669bd8de1f80879856044161 | |
download | aur-21f6809f6b78be43aa97f9bb75e30327a24aa1d4.tar.gz |
libcuckoo PKGBUILD and .SRCINFO based on mingw-w64-cmake
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dc1d0b03950d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = mingw-w64-libcuckoo-git + pkgdesc = libcuckoo provides a high-performance, compact hash table that allows multiple concurrent reader and writer threads. (mingw-w64) + pkgver = r293.8d247ab + pkgrel = 1 + url = https://github.com/efficient/libcuckoo + arch = any + license = MIT + makedepends = mingw-w64-cmake + makedepends = git + depends = mingw-w64-crt + depends = mingw-w64-gcc + options = !strip + options = !buildflags + options = staticlibs + source = mingw-w64-libcuckoo::git+https://github.com/efficient/libcuckoo.git#branch=master + sha1sums = SKIP + +pkgname = mingw-w64-libcuckoo-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f0ac16054467 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Mykola Dimura <mykola.dimura@gmail.com> +pkgname=mingw-w64-libcuckoo-git +pkgver=r293.8d247ab +pkgrel=1 +pkgdesc="libcuckoo provides a high-performance, compact hash table that allows multiple concurrent reader and writer threads. (mingw-w64)" +arch=('any') +url='https://github.com/efficient/libcuckoo' +license=('MIT') +depends=('mingw-w64-crt' 'mingw-w64-gcc') +makedepends=('mingw-w64-cmake' 'git') +options=('!strip' '!buildflags' 'staticlibs') +source=("${pkgname%-git}::git+https://github.com/efficient/libcuckoo.git#branch=master") +sha1sums=('SKIP') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "$srcdir/${pkgname%-git}" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-cmake -DCMAKE_BUILD_TYPE=Release .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "$srcdir/${pkgname%-git}/build-${_arch}" + make DESTDIR="$pkgdir" install +# ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll +# ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} |