summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1cd21033e13e74268fb9cc8e78179f97dd0bf7a (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=1.0.6.r5.g2dee33a
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=('BSD-2-Clause')
depends=('mingw-w64-crt')
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}/"
    chmod -R a+r "${INCDIR}"
#    ${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll
#    ${_arch}-strip -g "${pkgdir}"/usr/${_arch}/lib/*.a
  done
}
 
pkgver() {
  git -C ${pkgname%-git} describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}