blob: e55c943e850ae66613916da1f6302f37f2cab0bc (
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
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=libck-git
pkgver=0.7.1.r25.g50299b7
pkgrel=1
pkgdesc="Concurrency primitives, safe memory reclamation mechanisms and non-blocking (including lock-free) data structures"
arch=('i686' 'x86_64')
url="http://concurrencykit.org/"
license=('Apache' 'BSD' 'custom')
depends=('glibc')
makedepends=('git')
provides=("libck=$pkgver")
conflicts=('libck')
options=('staticlibs')
source=("git+https://github.com/concurrencykit/ck.git")
sha256sums=('SKIP')
pkgver() {
cd "ck"
_tag=$(git tag -l --sort -v:refname | sed '/rc[0-9]*/d' | head -n1)
_rev=$(git rev-list --count $_tag..HEAD)
_hash=$(git rev-parse --short HEAD)
printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//'
}
build() {
cd "ck"
./configure \
--prefix="/usr"
make
}
check() {
cd "ck"
#make check
}
package() {
cd "ck"
make DESTDIR="$pkgdir" install
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/libck"
}
|