void-packages/srcpkgs/factor/template

50 lines
1.3 KiB
Bash
Raw Normal View History

# Template file for 'factor'
pkgname=factor
2018-10-06 09:16:31 +00:00
version=0.98
revision=1
2018-10-06 09:16:31 +00:00
only_for_archs="i686 x86_64"
build_style=gnu-makefile
hostmakedepends="unzip pkg-config"
2018-10-06 09:16:31 +00:00
makedepends="gtk+-devel gtkglext-devel"
depends="gtk+-devel gtkglext-devel"
wrksrc="factor"
nostrip_files="a.elf"
short_desc="Concatenative programming language, similar to Forth"
maintainer="B. Wilson <x@wilsonb.com>"
license="BSD-2-Clause"
homepage="http://factorcode.org/"
distfiles="http://downloads.factorcode.org/releases/${version}/factor-src-${version}.zip"
2018-10-06 09:16:31 +00:00
checksum=318fb8cdf84528fce17a83f7e9d76e55292ccc779c71d180d99a6465574d3706
post_build() {
image=''
case "${XBPS_TARGET_MACHINE}" in
2018-10-06 09:16:31 +00:00
i686*) image='boot.unix-x86.32.image'
sse_version=0;;
x86_64*) image='boot.unix-x86.64.image'
sse_version=20;;
*) return 1;;
esac
touch /etc/ld.so.cache
2018-10-06 09:16:31 +00:00
./factor -i="${image}" -sse-version="${sse_version}"
}
do_install() {
vmkdir "usr/lib/${pkgname}"
vcopy misc "usr/lib/${pkgname}"
vcopy extra "usr/lib/${pkgname}"
vcopy core "usr/lib/${pkgname}"
vcopy basis "usr/lib/${pkgname}"
vinstall factor 755 "usr/lib/${pkgname}"
vinstall factor.image 644 "usr/lib/${pkgname}"
vmkdir usr/bin
ln -sr "${DESTDIR}/usr/lib/${pkgname}/factor" \
"${DESTDIR}/usr/bin/factor-vm"
2018-10-06 09:16:31 +00:00
vlicense LICENSE.txt
}