# 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"
