aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/lua-ev/APKBUILD
blob: a9a46d060e5ed802b07554565a3f393a66191390 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-ev
pkgver=1.3
pkgrel=0
pkgdesc="Lua bindings to libev"
url="https://github.com/brimworks/lua-ev"
arch="all"
license="MIT"
depends=
makedepends="lua-dev cmake libev-dev wget"
install=
subpackages="$pkgname-doc"
source="https://github.com/downloads/brimworks/lua-ev/lua-ev-v$pkgver.tar.gz"

_builddir="$srcdir"/lua-ev-v$pkgver
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 \
		-DINSTALL_CMOD=/usr/lib/lua/5.1/ \
		. || return 1
	make || return 1
	install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="4b3703d82711407be6ca5ef793b0cf57  lua-ev-v1.3.tar.gz"