aboutsummaryrefslogtreecommitdiffstats
path: root/main/slang/APKBUILD
blob: 09b42e1b4044ce59e54441d2ab906446bc406a02 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=slang
pkgver=2.2.1
pkgrel=0
pkgdesc="S-Lang is a powerful interpreted language"
url="http://www.s-lang.org/"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="pcre-dev"
source="ftp://ftp.fu-berlin.de/pub/unix/misc/$pkgname/v${pkgver%.*}/$pkgname-$pkgver.tar.gz
	slang-2.1.3-uclibc.patch
	"

prepare () {
	cd "$srcdir"/$pkgname-$pkgver
	for i in ../*.patch; do
		msg "Applying $i..."
		patch -p1 < $i || return 1
	done
}

build () {
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--sysconfdir=/etc || return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make -j1 install-all DESTDIR="$pkgdir" || return 1
}
md5sums="9a72420df2aa7b1932a195c6e5a85465  slang-2.2.1.tar.gz
56ca82f415578994b6050e769b6b7bc9  slang-2.1.3-uclibc.patch"