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.
This commit is contained in:
Jürgen Buchmüller 2021-02-21 19:34:24 +01:00
parent de534bc925
commit 40e6e94338

View file

@ -1,6 +1,6 @@
# Template file for 'spin2cpp'
pkgname=spin2cpp
version=5.0.3
version=5.1.1
revision=1
build_style=gnu-makefile
hostmakedepends="bison"
@ -9,7 +9,7 @@ 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=d19d4c9230e35e34df6d689634ce49c6752f386a77171ca3ae01aa1700a7b549
checksum=72cc53a17c528541170361d70344f08bdf6ac719c875b6bbd71e0ae398d1eea8
CFLAGS="-I. -I./build -DFLEXSPIN_BUILD -fcommon"
@ -18,10 +18,14 @@ do_check() {
}
do_install() {
vmkdir usr/bin
vmkdir usr/libexec/p2tools/bin
for f in flexcc flexspin spin2cpp; do
vbin build/$f
vinstall build/$f 755 usr/libexec/p2tools/bin/
ln -s /usr/libexec/p2tools/bin/$f ${DESTDIR}/usr/bin/
done
vmkdir usr/share/${pkgname}
vcopy doc usr/share/${pkgname}
vmkdir usr/libexec/p2tools
vcopy include usr/libexec/p2tools
vcopy doc usr/libexec/p2tools
vlicense COPYING
}