move from x11-packages: tk
This commit is contained in:
parent
0bc27a0f57
commit
a541eeb01b
34
packages/tk/build.sh
Normal file
34
packages/tk/build.sh
Normal file
@ -0,0 +1,34 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://tcl.sourceforge.net/
|
||||
TERMUX_PKG_DESCRIPTION="A windowing toolkit for use with tcl"
|
||||
TERMUX_PKG_LICENSE="custom"
|
||||
TERMUX_PKG_LICENSE_FILE="license.terms"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=8.6.9.1
|
||||
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/sourceforge/tcl/tk${TERMUX_PKG_VERSION}-src.tar.gz
|
||||
TERMUX_PKG_SHA256=8fcbcd958a8fd727e279f4cac00971eee2ce271dc741650b1fc33375fb74ebb4
|
||||
TERMUX_PKG_DEPENDS="fontconfig, libx11, libxft, libxss, tcl"
|
||||
TERMUX_PKG_NO_STATICSPLIT=true
|
||||
TERMUX_PKG_MAKE_INSTALL_TARGET="install install-private-headers"
|
||||
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--enable-threads
|
||||
--enable-64bit
|
||||
"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
TERMUX_PKG_SRCDIR+="/unix"
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
ln -sfr "$TERMUX_PREFIX/bin/wish${TERMUX_PKG_VERSION:0:3}" \
|
||||
"$TERMUX_PREFIX"/bin/wish
|
||||
ln -sfr "$TERMUX_PREFIX/lib/libtk${TERMUX_PKG_VERSION:0:3}.so" \
|
||||
"$TERMUX_PREFIX"/lib/libtk.so
|
||||
|
||||
cd "$TERMUX_PKG_SRCDIR"/../
|
||||
|
||||
for dir in compat generic generic/ttk unix; do
|
||||
install -dm755 "$TERMUX_PREFIX/include/tk-private/$dir"
|
||||
install -m644 -t "$TERMUX_PREFIX/include/tk-private/$dir" "$dir"/*.h
|
||||
done
|
||||
}
|
12
packages/tk/no-hardlinks.patch
Normal file
12
packages/tk/no-hardlinks.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -uNr tk8.6.9/unix/installManPage tk8.6.9.mod/unix/installManPage
|
||||
--- tk8.6.9/unix/installManPage 2018-11-18 00:33:44.000000000 +0200
|
||||
+++ tk8.6.9.mod/unix/installManPage 2019-11-17 16:16:48.449560198 +0200
|
||||
@@ -109,7 +109,7 @@
|
||||
chmod 444 $Dir/$First
|
||||
$Gzip $Dir/$First
|
||||
else
|
||||
- ln $SymOrLoc$First$Gz $Dir/$Target$Gz
|
||||
+ ln -sfr $SymOrLoc$First$Gz $Dir/$Target$Gz
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user