aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/lua-lbase64/APKBUILD
blob: e87ab130eb9010e65d616a2d085faa955ee926ca (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-lbase64
pkgver=5.1.2012.08.20
pkgrel=0
pkgdesc="A base64 library for Lua"
url="http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbase64"
arch="all"
license="Public Domain"
depends=lua
makedepends="lua-dev"
install=
subpackages=

# For date and checksum see:
# http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/release.txt

source="http://dev.alpinelinux.org/archive/lbase64/lbase64-$pkgver.tar.gz"

_builddir="$srcdir"/base64

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="4834045fe79facef524990e968783dab  lbase64-5.1.2012.08.20.tar.gz"