aboutsummaryrefslogtreecommitdiffstats
path: root/testing/regina-rexx/APKBUILD
blob: e5b14331cb904f4e1d8020542fda47bce89b03c0 (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
# Contributor:
# Maintainer:
pkgname=regina-rexx
_pkgname=Regina-REXX
pkgver=3.5
pkgrel=1
pkgdesc="Regina is an implementation of a Rexx interpreter."
url="http://regina-rexx.sourceforge.net/"
arch="all"
license="LGPL"
depends=
depends_dev=
makedepends=""
install=""
subpackages="$pkgname-doc"
source="regina-rexx.initd
	http://downloads.sourceforge.net/regina-rexx/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$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"
	./configure --prefix=/usr --libdir=/usr/lib
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
	rm -rf "$pkgdir"/usr/etc
	
	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname || return 1
}

md5sums="d798859c38eb61088f1ca20b16e78639  regina-rexx.initd
914e223d882f0e4a35f4efda0a75920d  Regina-REXX-3.5.tar.gz"