aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/regina-rexx/APKBUILD
blob: 4dea4751675f694b7f358141c9bad654c7bb5c82 (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
48
49
50
51
52
53
54
55
# Contributor:
# Maintainer:
pkgname=regina-rexx
_pkgname=Regina-REXX
pkgver=3.7
pkgrel=0
pkgdesc="Regina is an implementation of a Rexx interpreter."
url="http://regina-rexx.sourceforge.net/"
arch=""
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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libdir=/usr/lib \
		|| return 1
	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
276235e489f7f8596cb9c6e00f8a61f3  Regina-REXX-3.7.tar.gz"
sha256sums="cad62b61b57b109d619467302e72092ebb83ede166aa9e60adafded791bd3eb3  regina-rexx.initd
133c9e0fd9e09f9adfc4108f43b727e191e4c4c01711cfa26416799d21d1e7fe  Regina-REXX-3.7.tar.gz"
sha512sums="1d4955ab4d1d5ef46fffecf2e3ebddf889d2108683bc41d2eb04c988ec416c48ae061d349705fc7018a22ff23a92fe1be7328a68f2145292a4d511bfa82b7b70  regina-rexx.initd
5ae88611baa43fbc3325cb814c9cb4cedc454f36c1f9a18cdf82c755bb75531ab9bd5d0088f340808790959feac691e4bf72c69b33f1fe554e9d26eb880dfc4a  Regina-REXX-3.7.tar.gz"