wok-next view tk/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents 13924624fb11
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tk"
4 VERSION="8.6.9.1"
5 CATEGORY="development"
6 SHORT_DESC="GUI toolkit for Tcl"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.tcl.tk/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/tk.html"
12 TARBALL="$PACKAGE$VERSION-src.tar.gz"
13 WGET_URL="$SF_MIRROR/tcl/$TARBALL"
14 TARBALL_SHA1="473019c00461fb55724d1923ed6330d01d9483b8"
16 BUILD_DEPENDS="tcl-dev libx11-dev libxt-dev libxft-dev libxscrnsaver-dev \
17 libxext-dev"
18 SPLIT="$PACKAGE-dev $PACKAGE-demos $PACKAGE"
20 COPY_dev="@dev *Config.sh"
21 COPY_demos="demos/"
23 CAT_demos="development|demo applications"
25 DEPENDS_demos=" "
26 DEPENDS_std="fontconfig libx11 libxscrnsaver libxft tcl"
27 DEPENDS_dev="$PACKAGE fontconfig-dev libx11-dev libxext-dev libxft-dev \
28 libxscrnsaver-dev tcl-dev"
30 TAGS_std="programming language"
32 compile_rules() {
33 case $ARCH in
34 x86_64) ARCH_ARGS='--enable-64bit';;
35 *) ARCH_ARGS='';;
36 esac
38 cd unix
39 ./configure \
40 $ARCH_ARGS &&
41 make &&
42 sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
43 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
44 -i tkConfig.sh &&
45 make install &&
46 make install-private-headers || return 1
48 ln -v -sf wish${VERSION:0:3} $install/usr/bin/wish
49 chmod -v 755 $install/usr/lib/libtk${VERSION:0:3}.so
50 find $install -name '*.sh' -exec chmod -v 755 '{}' \;
51 find $install/usr/share/man -type f -exec chmod u+w '{}' \; # 444->644
52 }