commit 9c4a19e854165a8806dbf47189738b6bace0c1d8 Author: EnumDev Date: Wed Feb 25 09:03:34 2026 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9d96df7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Ignore BPM archives and signatures +*.bpm +*.bpm.sig diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..5487ea7 --- /dev/null +++ b/pkg.info @@ -0,0 +1,19 @@ +name: tk +description: A windowing toolkit for use with tcl +version: 8.6.16 +revision: 1 +url: http://tcl.sourceforge.net/ +license: TCL +maintainers: + - enumdev@enumerated.dev +architecture: any +type: source +depends: + - libxft + - libxscrnsaver + - tcl +downloads: + - url: https://downloads.sourceforge.net/project/tcl/Tcl/${BPM_PKG_VERSION}/tk${BPM_PKG_VERSION}-src.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: be9f94d3575d4b3099d84bc3c10de8994df2d7aa405208173c709cc404a7e5fe diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..90e9522 --- /dev/null +++ b/source.sh @@ -0,0 +1,39 @@ +# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE +# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + cd unix + + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --enable-threads \ + --enable-64bit \ + --disable-rpath + make +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + cd unix + + make INSTALL_ROOT="$BPM_OUTPUT" install install-private-headers + + # Create unversioned symlinks + ln -sf wish${BPM_PKG_VERSION%.*} "$BPM_OUTPUT"/usr/bin/wish + ln -sf libtk${BPM_PKG_VERSION%.*}.so "$BPM_OUTPUT"/usr/lib/libtk.so + + # Remove buildroot traces + sed -e "s#${BPM_SOURCE}/unix#/usr/lib#" \ + -e "s#${BPM_SOURCE}#/usr/include#" \ + -i "${BPM_OUTPUT}/usr/lib/tkConfig.sh" + + # Remove unrequired execute permissions + chmod -x "$BPM_OUTPUT"/usr/lib/libtkstub${BPM_PKG_VERSION%.*}.a + + # Install package license + install -Dm644 "$BPM_SOURCE"/license.terms "$BPM_OUTPUT"/usr/share/licenses/tk/license.terms +}