summaryrefslogtreecommitdiffstats
path: root/main/haserl/APKBUILD
blob: b6e644aef6df5bfc15fd2708ee006f2bdc36d07d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=haserl
pkgver=0.9.27
pkgrel=1
pkgdesc="Html And Shell Embedded Report Language"
url="http://haserl.sourceforge.net/"
arch="all"
license="GPL-2"
depends=
makedepends="lua-dev automake autoconf"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	lua2c.patch
	"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
	patch -p0 -i "$srcdir"/lua2c.patch || return 1
	sed -i -e 's/^        /\t/' src/Makefile.am || return 1
	rm -f src/haserl_lualib.inc

	aclocal && autoconf && automake --add-missing || return 1
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--with-lua || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir/" install
	chmod 4111 "$pkgdir"/usr/bin/haserl
}

md5sums="1f692db8939858338a44e25d0190aa9e  haserl-0.9.27.tar.gz
00a612705c8a75e0d991749bf9f11e24  lua2c.patch"