summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03c278b4cc2053ba3f8879b12dd1926037afdf7d (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
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>

pkgname=libfiber-git
pkgver=r212.198c70e
pkgrel=1
pkgdesc='A User Space Threading Library Supporting Multi-Core Systems'
arch=(i686 x86_64)
url='https://github.com/brianwatling/libfiber'
license=(Not specified)
makedepends=(git cmake)
source=(git://github.com/brianwatling/libfiber)
sha1sums=('SKIP')

pkgver() {
  cd libfiber
  # repo does not have any git tags yet
  echo r$(git rev-list --count master).$(git rev-parse --short master)
}

prepare() {
  cd libfiber
  sed -e 's/ time / /g' -i Makefile
}

build() {
  cd libfiber
  make libfiber.so
}

check() {
  cd libfiber
  make runtests
}

package() {
  cd libfiber
  mkdir -p "$pkgdir/usr/lib"
  install libfiber.so "$pkgdir/usr/lib"
}