blob: 6614fac5e3174ae9a6bac96cbf5ac4f86bbc94d2 (
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
48
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=liburcu-git
pkgver=0.14.0.r59.g1c64a40
pkgrel=1
pkgdesc="Userspace RCU implementation"
arch=('i686' 'x86_64')
url="https://liburcu.org/"
license=('custom')
depends=('glibc')
makedepends=('git')
provides=("liburcu=$pkgver")
conflicts=('liburcu')
options=('staticlibs')
source=("git+https://github.com/urcu/userspace-rcu.git")
sha256sums=('SKIP')
pkgver() {
cd "userspace-rcu"
_tag=$(git tag -l --sort -v:refname | 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 "userspace-rcu"
./bootstrap
./configure \
--prefix="/usr"
make
}
check() {
cd "userspace-rcu"
make check
}
package() {
cd "userspace-rcu"
make DESTDIR="$pkgdir" install
install -Dm644 "LICENSE.md" -t "$pkgdir/usr/share/licenses/liburcu"
}
|