flexprop: update to 5.2.0

src/tcl_library was removed by upstream. Install doc/help.txt.
This commit is contained in:
Jürgen Buchmüller 2021-03-01 01:33:47 +01:00
parent f0e4adfab9
commit b1f8822495

View file

@ -1,6 +1,6 @@
# Template file for 'flexprop'
pkgname=flexprop
version=5.1.1
version=5.2.0
revision=1
hostmakedepends="loadp2 which"
makedepends="tk-devel"
@ -10,7 +10,7 @@ maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="MIT"
homepage="https://github.com/totalspectrum/flexprop/"
distfiles="https://github.com/totalspectrum/${pkgname}/archive/v${version}.tar.gz"
checksum=65cf8b0cd04d439d3b694962579d2f44602cecfa7bd2dee24540be601cfa5f2a
checksum=bc72b9cc0729869cc0c4d298606f9a8d0fe937f85e9d0ef3a352f4a577147680
do_build() {
${CPP} -xc++ -I /usr/libexec/p2tools -DTCL_SRC < version.inp > src/version.tcl
@ -18,12 +18,13 @@ do_build() {
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
@ -42,5 +43,6 @@ export SOURCE=/usr/libexec/p2tools/src
exec /usr/bin/wish /usr/libexec/p2tools/flexprop.tcl
EOF
chmod 755 ${DESTDIR}/usr/bin/flexprop
vdoc doc/help.txt
vlicense License.txt LICENSE
}