blob: 219f133f7e3d54fdeb1b3a09665b964d5028c9ca (
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
|
pkgname=osvr-libfunctionality-git
pkgver=v0.1.r29.g3c8b1e4
pkgrel=1
pkgdesc="A minimal library for dynamically-loaded or statically-linked functionality modules."
arch=(i686 x86_64)
url="https://github.com/OSVR/libfunctionality"
#license=('GPL')
makedepends=('git' 'cmake')
source=("libfunctionality::git+https://github.com/OSVR/libfunctionality.git")
md5sums=(SKIP) #generate with 'makepkg -g'
pkgver() {
cd "$srcdir/libfunctionality"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "$srcdir/libfunctionality"
}
build() {
mkdir -p "$srcdir/libfunctionality-build"
cd "$srcdir/libfunctionality-build"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../libfunctionality
make
}
package() {
cd "$srcdir/libfunctionality-build"
make DESTDIR="$pkgdir/" install
mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib" || true
}
# vim:set ts=2 sw=2 et:
|