void-packages/srcpkgs/spin2cpp/template
Jürgen Buchmüller 40e6e94338 spin2cpp: update to 5.1.1
Use new layout where Propeller 2 tools are installed in a common
directory usr/libexec/p2tools.

This makes it easier for packages like flexspin to find its include
files in ../include which is the default.
2021-02-21 19:42:15 +01:00

31 lines
937 B
Bash

# Template file for 'spin2cpp'
pkgname=spin2cpp
version=5.1.1
revision=1
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"
checksum=72cc53a17c528541170361d70344f08bdf6ac719c875b6bbd71e0ae398d1eea8
CFLAGS="-I. -I./build -DFLEXSPIN_BUILD -fcommon"
do_check() {
make CFLAGS="$CFLAGS" ${makejobs} test || true # some tests fail
}
do_install() {
vmkdir usr/bin
vmkdir usr/libexec/p2tools/bin
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/
done
vmkdir usr/libexec/p2tools
vcopy include usr/libexec/p2tools
vcopy doc usr/libexec/p2tools
vlicense COPYING
}