Initial commit

This commit is contained in:
2026-02-25 09:03:34 +02:00
commit 9c4a19e854
3 changed files with 61 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# Ignore BPM archives and signatures
*.bpm
*.bpm.sig
+19
View File
@@ -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:
- [email protected]
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
+39
View File
@@ -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
}