void-packages/srcpkgs/spin2cpp/template

34 lines
1,000 B
Bash
Raw Normal View History

2021-02-21 13:21:22 +00:00
# Template file for 'spin2cpp'
pkgname=spin2cpp
2021-03-01 00:33:30 +00:00
version=5.2.0
revision=1
2021-02-21 13:21:22 +00:00
build_style=gnu-makefile
hostmakedepends="bison"
short_desc="Converting languages for the Parallax Inc. Propeller 1 and 2"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="MIT"
homepage="https://github.com/totalspectrum/spin2cpp/"
distfiles="https://github.com/totalspectrum/${pkgname}/archive/v${version}.tar.gz"
2021-03-01 00:33:30 +00:00
checksum=aa5a356440e14543cfc367c436f782436900eec25ce9a13e9972bfe28706dfbe
2021-02-21 13:21:22 +00:00
CFLAGS="-I. -I./build -DFLEXSPIN_BUILD -fcommon"
do_check() {
make CFLAGS="$CFLAGS" ${makejobs} test || true # some tests fail
}
do_install() {
vmkdir usr/libexec/p2tools/bin
vcopy include usr/libexec/p2tools
vcopy doc usr/libexec/p2tools
vmkdir usr/libexec/p2tools/spin2cpp
vinstall version.h 644 usr/libexec/p2tools/spin2cpp
vmkdir usr/bin
2021-02-21 13:21:22 +00:00
for f in flexcc flexspin spin2cpp; do
vinstall build/$f 755 usr/libexec/p2tools/bin/
ln -s /usr/libexec/p2tools/bin/$f ${DESTDIR}/usr/bin/
2021-02-21 13:21:22 +00:00
done
vlicense COPYING
}