summaryrefslogtreecommitdiffstats
path: root/main/lua-posixtz/APKBUILD
blob: 086dc439bb74f82a41f6f59e9342edd098a31fd7 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-posixtz
pkgver=0.3
pkgrel=0
pkgdesc="Lua module to extract POSIX timezone from tzdata"
url="http://git.alpinelinux.org/cgit/ncopa/posixtz.git/"
arch="all"
license="GPLv2"
depends=
makedepends="lua-dev"
install=
subpackages=
source="http://dev.alpinelinux.org/archive/posixtz/posixtz-$pkgver.tar.bz2"

_builddir="$srcdir"/posixtz-$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 core.so || return 1
}

package() {
	cd "$_builddir"
	install -D core.so "$pkgdir"/usr/lib/lua/5.1/posixtz/core.so
	install -D posixtz.lua "$pkgdir"/usr/share/lua/5.1/posixtz.lua
}

md5sums="99efce32b3f870e1b071ce47f3a98a18  posixtz-0.3.tar.bz2"
sha256sums="574a765e0569458d7ccb76e97b3a96de2f0c19ad093c6811675b8a57f7088a53  posixtz-0.3.tar.bz2"
sha512sums="57dfd38a4050230e49ec9a23bfec5e995dd48ed1fa338a72c4d2c3b86590d4c7357d3dc6d12b4f1564beebcf48f0d0ed855574e4ba29268160d8f84928a477fd  posixtz-0.3.tar.bz2"