blob: 0bf18dde8877bbb51e43d0229f44cee8a159548f (
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: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgname=selene-git
_pkgname=Selene
pkgver=0.4+126+g856b15e
pkgrel=1
pkgdesc='Simple C++11 friendly header-only bindings to Lua'
url='https://github.com/jeremyong/Selene'
arch=('any')
license=('zlib')
depends=('lua')
checkdepends=('cmake')
makedepends=('git')
provides=('selene')
conflicts=('selene')
source=(${pkgname}::git+https://github.com/jeremyong/${_pkgname})
sha512sums=('SKIP')
pkgver() {
cd ${pkgname}
git describe --tags|sed 's|-|+|g'|sed -r 's|v?(.+)|\1|g'
}
prepare() {
cd ${pkgname}
mkdir build
}
build() {
cd ${pkgname}/build
cmake ..
make
}
check() {
cd ${pkgname}/build
./test_runner
}
package() {
cd ${pkgname}
install -d "${pkgdir}/usr/share"
cp -r include "${pkgdir}/usr/share"
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
# vim: ts=2 sw=2 et:
|