43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'slang'
|
|
pkgname=slang
|
|
version=2.3.1a
|
|
revision=1
|
|
disable_parallel_build=yes
|
|
build_style=gnu-configure
|
|
configure_args="--with-z=${XBPS_CROSS_BASE}/usr --with-pcre=${XBPS_CROSS_BASE}/usr
|
|
--with-png=${XBPS_CROSS_BASE}/usr --with-onig=${XBPS_CROSS_BASE}/usr"
|
|
hostmakedepends="ncurses-devel"
|
|
makedepends="ncurses-devel zlib-devel pcre-devel libpng-devel oniguruma-devel"
|
|
short_desc="S-Lang programming library"
|
|
maintainer="Jens E. Becker <v2px@v2px.de>"
|
|
license="GPL-2"
|
|
homepage="http://www.jedsoft.org/slang"
|
|
distfiles="http://www.jedsoft.org/releases/slang/slang-${version}.tar.bz2"
|
|
checksum=54f0c3007fde918039c058965dffdfd6c5aec0bad0f4227192cc486021f08c36
|
|
|
|
conf_files="/etc/slsh.rc"
|
|
|
|
pre_configure() {
|
|
# configure test fails to detect termcap implementation if
|
|
# /usr/share/terminfo does not exist.
|
|
install -d /usr/share/terminfo
|
|
}
|
|
post_configure() {
|
|
sed '/RPATH/d' -i slsh/Makefile modules/Makefile
|
|
}
|
|
pre_install() {
|
|
if [ -f slsh/objs/slsh_exe ]; then
|
|
mv slsh/objs/slsh_exe slsh/objs/slsh
|
|
fi
|
|
sed 's,install: slsh, install: ,g' -i slsh/Makefile
|
|
}
|
|
|
|
slang-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|