summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e9d9b94eb0998d17eee1796abde657065a32d47 (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
# Maintainer: Jose Rafael Castillo Huggins <jrch2k10@gmail.com>
# Contributor: Jose Rafael Castillo Huggins <jrch2k10@gmail.com>

pkgbase=concurrent-queue-git
pkgname=('concurrent-queue-git')
pkgdesc="concurrent-queue trunk (git version)"
pkgver=127.7b69a8f
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/cameron314/concurrentqueue"
license=('BSD')
source=('concurrentqueue-git::git+https://github.com/cameron314/concurrentqueue.git')
options=('!libtool' '!debug')
md5sums=('SKIP')

pkgver() {
  cd ${srcdir}/concurrentqueue-git
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package_concurrent-queue-git() {
  pkgdesc="An industrial-strength lock-free queue for C++. (git version)"
  provides=('concurrent-queue-git')

  install -m755 -d ${pkgdir}/usr/include/concurrentqueue/
  mv -v ${srcdir}/concurrentqueue-git/*.h ${pkgdir}/usr/include/concurrentqueue/

  install -m755 -d "${pkgdir}/usr/share/licenses/concurrent-queue-git"
  install -m644 "${srcdir}/concurrentqueue-git/LICENSE.md" "${pkgdir}/usr/share/licenses/concurrent-queue-git/"
}