* update tk to 8.6.14-4
This commit is contained in:
parent
e3b4a850c7
commit
ae9c31f8a6
13
tk/PKGBUILD
13
tk/PKGBUILD
@ -4,7 +4,7 @@
|
||||
|
||||
pkgname=tk
|
||||
pkgver=8.6.14
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc='A windowing toolkit for use with tcl'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
url="http://tcl.sourceforge.net/"
|
||||
@ -14,8 +14,15 @@ depends=(tcl
|
||||
libxft)
|
||||
options=(staticlibs)
|
||||
_archive="$pkgname$pkgver"
|
||||
source=("https://downloads.sourceforge.net/sourceforge/tcl/$_archive-src.tar.gz")
|
||||
sha256sums=('8ffdb720f47a6ca6107eac2dd877e30b0ef7fac14f3a84ebbd0b3612cee41a94')
|
||||
source=("https://downloads.sourceforge.net/sourceforge/tcl/$_archive-src.tar.gz"
|
||||
font-sizes.diff)
|
||||
sha256sums=('8ffdb720f47a6ca6107eac2dd877e30b0ef7fac14f3a84ebbd0b3612cee41a94'
|
||||
'80a64f81a002ca83475ac2e53b8c9836e1a376049989733b61687c88df8c68e5')
|
||||
|
||||
prepare() {
|
||||
cd "$_archive"
|
||||
patch -p1 -i ../font-sizes.diff
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$_archive/unix"
|
||||
|
22
tk/font-sizes.diff
Normal file
22
tk/font-sizes.diff
Normal file
@ -0,0 +1,22 @@
|
||||
Author: Sergei Golovan
|
||||
Description: Patch sets the default font sizes for X11 in points instead of
|
||||
pixels. This helps to get reasonable font sizes for high DPI displays.
|
||||
Last-Modified: Sat, 24 Mar 2018 16:14:33 +0300
|
||||
|
||||
--- a/library/ttk/fonts.tcl
|
||||
+++ b/library/ttk/fonts.tcl
|
||||
@@ -128,10 +128,10 @@
|
||||
set F(family) "Helvetica"
|
||||
set F(fixed) "courier"
|
||||
}
|
||||
- set F(size) -12
|
||||
- set F(ttsize) -10
|
||||
- set F(capsize) -14
|
||||
- set F(fixedsize) -12
|
||||
+ set F(size) 10
|
||||
+ set F(ttsize) 9
|
||||
+ set F(capsize) 12
|
||||
+ set F(fixedsize) 10
|
||||
|
||||
font configure TkDefaultFont -family $F(family) -size $F(size)
|
||||
font configure TkTextFont -family $F(family) -size $F(size)
|
Loading…
x
Reference in New Issue
Block a user