blob: 2e0e2dea60ce0ecff3d756393a25f35436a5eaf8 (
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
|
# Maintainer: Daniel Kirchner <daniel at ekpyron dot org>
pkgname=luawrapper-git
pkgver=r55.a6a5958
pkgrel=1
pkgdesc="luawrapper for C++"
license=('MIT')
arch=('i686' 'x86_64')
url="http://github.com/ekpyron/luawrapper/"
depends=('luajit')
makedepends=('git' 'cmake')
source=('git+https://github.com/ekpyron/luawrapper')
md5sums=('SKIP')
pkgver() {
cd "$srcdir"/luawrapper
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
rm -rf "$srcdir"/build
mkdir -p "$srcdir"/build
cd "$srcdir"/build
cmake ../luawrapper/ -DLUA_INCLUDE_DIR=/usr/include/luajit-2.1 -DLUA_LIBRARY=/usr/lib/libluajit-5.1.so -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "$srcdir"/build
make DESTDIR="${pkgdir}" install
}
|