summaryrefslogtreecommitdiffstats
path: root/main/lua-bitlib/APKBUILD
blob: da6977fa137c44d16980e76830149deb405c1b62 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-bitlib
_name=bitlib
pkgver=26
pkgrel=3
pkgdesc="A lua library providing bitwise operations"
url="http://luaforge.net/projects/bitlib"
arch="all"
license="MIT/X11"
depends="lua"
makedepends="lua-dev"
subpackages="$pkgname-dev"
source="http://luaforge.net/frs/download.php/4231/bitlib-26.tar.gz"
replaces="bitlib"

_builddir="$srcdir"/$_name-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/lua/5.1/*.la
}

md5sums="b76cb74aef951250f8fa7a65f39bb3d8  bitlib-26.tar.gz"