aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua5.2-b64/APKBUILD
blob: fa2e6c4f543eed43c786c7d9ea7f501bb4190c40 (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
43
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua5.2-b64
pkgver=0.1
pkgrel=1
pkgdesc="Lua 5.2 base64 implementation with support for urlsafe"
url="https://github.com/ncopa/lua-b64"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev lua5.2-dev"
install=""
subpackages=""
source="lua-b64-$pkgver.tar.gz::https://github.com/ncopa/lua-b64/archive/v0.1.tar.gz
	0001-b64-fix-segfault-caused-by-signed-char.patch"

_builddir="$srcdir"/lua-b64-$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"
	make
}

package() {
	cd "$_builddir"
	install -D b64.so "$pkgdir"/usr/lib/lua/5.2/b64.so || return 1
}

md5sums="91e537a0aedc7bd2fb4ca38cda1d9f9f  lua-b64-0.1.tar.gz
f396211df1ed6f94c2d23fc1c102ffdb  0001-b64-fix-segfault-caused-by-signed-char.patch"
sha256sums="5136414bc5db7e6bfc96ff7eb9ac56e797419d04c5b4d3483891c8714239d700  lua-b64-0.1.tar.gz
2e4b39f088c275fa572379283489232cecf383e2c6c6fd43e802b6be72cbc70e  0001-b64-fix-segfault-caused-by-signed-char.patch"
sha512sums="8740d5061db01dca166ce2c959548a3232c85dce156fce3502da35f457db79db2bf23242ee6d26b64f4141c451db733898328b8fc3d1f62b47e8f7ec790577d1  lua-b64-0.1.tar.gz
6da3b8048b2e6772a4aac954ea2db35f9c21897d720e7ff9dc6c1d63ffc37eeb4fb91be46bc13b32a2c3d1b88997172fe259ea699ac8591f0f3e1fd53cae378b  0001-b64-fix-segfault-caused-by-signed-char.patch"