blob: 96278f13d712c5bf89757cf8c9c7b64dd0b10d77 (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-posixtz
pkgver=0.1
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=
install=
subpackages=
source="http://git.alpinelinux.org/cgit/ncopa/posixtz.git/snapshot/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 posixtz.so || return 1
}
package() {
cd "$_builddir"
install -D posixtz.so "$pkgdir"/usr/lib/lua/5.1/posixtz.so
}
md5sums="be1ca94f79abfa367b4c54a51737ba91 posixtz-0.1.tar.bz2"
|