blob: f13d4178766a0c01ecaa5e97e370ef2efe175350 (
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
41
42
43
44
45
46
47
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=lua-tar
pkgver=0.0
pkgrel=0
pkgdesc="Lua tar"
url="http://luaforge.net/projects/luatar/"
arch="all"
license="GPL"
depends=""
depends_dev="lua-dev libtar-dev bzip2-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://files.luaforge.net/releases/luatar/luatar/luatar-$pkgver/luatar-$pkgver.tar.gz
enable-pic.patch"
_builddir="$srcdir"/luatar-$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 HAVE_LIBTAR=1 DEBUG=0 || return 1
}
package() {
cd "$_builddir"
install -m644 -D tar.lua \
$pkgdir/usr/share/lua/5.1/tar.lua || return 1
install -m755 -D ltar.so \
$pkgdir/usr/lib/lua/5.1/ltar.so || return 1
}
md5sums="d85e342e65c41e98daf285ef280e71ec luatar-0.0.tar.gz
de6b512d8216b5ff03a2439963c51bd6 enable-pic.patch"
sha256sums="5fafa306425f17996a9288c828b41f94c8eb17d0a01f541b3b221e4e9cc2a398 luatar-0.0.tar.gz
44794ae4ddd1e4873a3b885607dd14015b9eed5a023740547f3e61d294347024 enable-pic.patch"
sha512sums="11077a7c8806041654dc75dac0dac8c49497ff8ea55031f86c3bec7266624a164c403899f1bd8a41eeb06e076e0386927685b3c4eb600ff31e17c42c038b9acb luatar-0.0.tar.gz
d1680dd9fbc96d3f58349f69820df0f879ad139703086e7934f60cbdeadb649ac744a9d3c9257273a088a3895e899b780d2eca5278096ea623277fd5b1d59600 enable-pic.patch"
|