diff options
author | Mykola Dimura | 2017-03-12 22:56:49 +0100 |
---|---|---|
committer | Mykola Dimura | 2017-03-12 22:56:49 +0100 |
commit | 97464bbe2795a357a02bc98f2ee7807262a97c18 (patch) | |
tree | 264327e1a7ae82f84198b1c65855cc9c928354eb | |
download | aur-97464bbe2795a357a02bc98f2ee7807262a97c18.tar.gz |
PKGBUILD and .SRCINFO for header-only c++ library
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..28d09beda318 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = mingw-w64-readerwriterqueue-git + pkgdesc = (mingw-w64) + pkgver = r77.66a9b18 + pkgrel = 1 + url = https://github.com/cameron314/readerwriterqueue + arch = any + license = MIT + makedepends = git + depends = mingw-w64-crt + depends = mingw-w64-gcc + options = !strip + options = !buildflags + options = staticlibs + source = mingw-w64-readerwriterqueue::git+https://github.com/cameron314/readerwriterqueue.git#branch=master + sha1sums = SKIP + +pkgname = mingw-w64-readerwriterqueue-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a4b934635d87 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Mykola Dimura <mykola.dimura@gmail.com> +pkgname=mingw-w64-readerwriterqueue-git +pkgver=r77.66a9b18 +pkgrel=1 +pkgdesc=" +A fast single-producer, single-consumer lock-free queue for C++. (mingw-w64)" +arch=('any') +url='https://github.com/cameron314/readerwriterqueue' +license=('MIT') +depends=('mingw-w64-crt' 'mingw-w64-gcc') +makedepends=('git') +options=('!strip' '!buildflags' 'staticlibs') +source=("${pkgname%-git}::git+https://github.com/cameron314/readerwriterqueue.git#branch=master") +sha1sums=('SKIP') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + echo "done" +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/${pkgname%-git}" + INCDIR="${pkgdir}/usr/${_arch}/include/readerwriterqueue" + mkdir -p "${INCDIR}" + cp readerwriterqueue.h atomicops.h "${INCDIR}/" +# ${_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)" +} |