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

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

build () {
	cd "$srcdir"/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
	make -j1 elf static || return 1
	cd slsh && make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make -j1 install-all DESTDIR="$pkgdir" || return 1
}
md5sums="86cd8689cd71e281b4720fef8453ceeb  slang-2.2.4.tar.gz
7f67ad2059a7dd3cad289da97d547521  slang-2.2.3-slsh-libs.patch"