aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/lua-base64url/APKBUILD
blob: 11f083a14684c43c3609f670402ccc53fa83aa82 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-base64url
pkgver=5.1.20121219
pkgrel=1
pkgdesc="A urlsafe base64 library for Lua"
url="https://github.com/ncopa/lbase64url"
arch="all"
license="Public Domain"
depends=lua
makedepends="lua-dev"
install=
subpackages=
source="http://dev.alpinelinux.org/archive/lbase64url/lbase64url-$pkgver.tar.gz"

_builddir="$srcdir"/base64url

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	make LUABIN=/usr/bin || return 1
}

package() {
	cd "$_builddir"
	local cmod=$(pkg-config --variable INSTALL_CMOD lua)
	mkdir -p "$pkgdir"/$cmod
	cp -a *.so "$pkgdir"/$cmod/
}

md5sums="041e640987a6e5c9bb087d333faba8b9  lbase64url-5.1.20121219.tar.gz"