Natanael Copa 8f96791a24 testing/lua-llthreads: new aport
Low-Level native threads module for Lua
https://github.com/Neopallium/lua-llthreads
2011-08-10 12:46:50 +00:00

42 lines
881 B
Plaintext

# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-llthreads
pkgver=1.1
pkgrel=0
pkgdesc="Low-Level native threads module for Lua"
url="https://github.com/Neopallium/lua-llthreads"
arch="all"
license="MIT"
depends=""
makedepends="wget cmake"
install=""
subpackages=
source="saveas-http://github.com/Neopallium/lua-llthreads/tarball/v1.1/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/Neopallium-lua-llthreads-48c39a5
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
. || return 1
make || return 1
}
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" || return 1
}
md5sums="f5c80984e7d8849ad777b42c4594da8d lua-llthreads-1.1.tar.gz"