mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-13 11:51:38 +01:00
39 lines
896 B
Plaintext
39 lines
896 B
Plaintext
# 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://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 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"
|