From b50d97eb4691aa4c945e20cd5af39bf8d1b86075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 21 Feb 2021 22:09:27 +0100 Subject: [PATCH] New package: flexprop-5.1.1 --- srcpkgs/flexprop/template | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 srcpkgs/flexprop/template diff --git a/srcpkgs/flexprop/template b/srcpkgs/flexprop/template new file mode 100644 index 0000000000..248d38e100 --- /dev/null +++ b/srcpkgs/flexprop/template @@ -0,0 +1,46 @@ +# Template file for 'flexprop' +pkgname=flexprop +version=5.1.1 +revision=1 +hostmakedepends="loadp2 which" +makedepends="tk-devel" +depends="loadp2 tk xterm" +short_desc="Simple GUI for creating applications on the Parallax Propeller 2" +maintainer="Jürgen Buchmüller " +license="MIT" +homepage="https://github.com/totalspectrum/flexprop/" +distfiles="https://github.com/totalspectrum/${pkgname}/archive/v${version}.tar.gz" +checksum=65cf8b0cd04d439d3b694962579d2f44602cecfa7bd2dee24540be601cfa5f2a + +do_build() { + ${CPP} -xc++ -I /usr/libexec/p2tools -DTCL_SRC < version.inp > src/version.tcl +} + +do_install() { + vinstall flexprop.tcl 755 usr/libexec/p2tools + # Install a copy of the examples + vcopy samples usr/libexec/p2tools + # Let's use the system provided tcl/tk instead + rm -rf src/tcl_library + # No need for flexprop.c which is a Windows source file + rm -f src/flexprop.c + # Install a copy of the tcl/tk source scripts + vcopy src usr/libexec/p2tools + + # Create a wrapper script to run flexprop + vmkdir usr/bin + cat >${DESTDIR}/usr/bin/flexprop <