summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 206116243a72848d1f5dd52a1b9809088a4533c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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=('Simplified BSD License')
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)"
}