aboutsummaryrefslogtreecommitdiffstats
path: root/main/slang/APKBUILD
blob: cae08a4ce4b68e7def47d9f65a034d5e8ec025e4 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=slang
pkgver=2.3.2
pkgrel=0
pkgdesc="Powerful interpreted language"
url="http://www.jedsoft.org/slang"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="pcre-dev ncurses-dev"
source="http://www.jedsoft.org/releases/$pkgname/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make -j1 elf static
	cd slsh && make
}

package() {
	cd "$builddir"
	make -j1 install-all DESTDIR="$pkgdir"
}

sha512sums="35cdfe8af66dac62ee89cca60fa87ddbd02cae63b30d5c0e3786e77b1893c45697ace4ac7e82d9832b8a9ac342560bc35997674846c5022341481013e76f74b5  slang-2.3.2.tar.bz2"