aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua5.1-bitlib/APKBUILD
blob: 583380d9c9fde52bbd819a54dc7417789788345d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua5.1-bitlib
_name=bitlib
pkgver=26
pkgrel=0
pkgdesc="A lua library providing bitwise operations"
url="http://luaforge.net/projects/bitli://github.com/LuaDist/bitlib"
arch="all"
license="MIT/X11"
depends=""
makedepends="lua5.1-dev"
subpackages=""
source="lua-bitlib-$pkgver.tar.gz::https://github.com/LuaDist/bitlib/archive/$pkgver.tar.gz"
replaces="lua-bitlib"

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

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

build() {
	cd "$_builddir"
	LUA=lua5.1 \
	./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/*a
}

md5sums="1c5bc4f544d8de7d4d50f0fccda733e8  lua-bitlib-26.tar.gz"
sha256sums="6f8902067ce1184bdef0e14a240d5e8c1ee56d7fcd59cff2cebe8bb0b9540d4c  lua-bitlib-26.tar.gz"
sha512sums="a9900788b2e7c3f79f0dc7fe5edecd1d1fa4328a4f3d3410be59c303d804dae2e89936d21bb6684dc2b8ffcd2e9b9c339bac214c8a314ab6341dbf67c51445ef  lua-bitlib-26.tar.gz"