You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
#!/usr/bin/env bash |
|
|
|
SRCDIR=$(pwd) |
|
|
|
pushd unix || return 1 |
|
|
|
./configure --prefix=/usr \ |
|
--mandir=/usr/share/man \ |
|
--disable-rpath |
|
|
|
make |
|
|
|
sed -e "s|$SRCDIR/unix|/usr/lib|" \ |
|
-e "s|$SRCDIR|/usr/include|" \ |
|
-i tclConfig.sh |
|
|
|
sed -e "s|$SRCDIR/unix/pkgs/tdbc1.1.13|/usr/lib/tdbc1.1.13|" \ |
|
-e "s|$SRCDIR/pkgs/tdbc1.1.13/generic|/usr/include|" \ |
|
-e "s|$SRCDIR/pkgs/tdbc1.1.13/library|/usr/lib/tcl8.6|" \ |
|
-e "s|$SRCDIR/pkgs/tdbc1.1.13|/usr/include|" \ |
|
-i pkgs/tdbc1.1.13/tdbcConfig.sh |
|
|
|
sed -e "s|$SRCDIR/unix/pkgs/itcl4.3.7|/usr/lib/itcl4.3.7|" \ |
|
-e "s|$SRCDIR/pkgs/itcl4.3.7/generic|/usr/include|" \ |
|
-e "s|$SRCDIR/pkgs/itcl4.3.7|/usr/include|" \ |
|
-i pkgs/itcl4.3.7/itclConfig.sh |
|
|
|
unset SRCDIR |
|
|
|
LC_ALL=C.UTF-8 make test |
|
|
|
make install |
|
chmod 644 /usr/lib/libtclstub8.6.a |
|
|
|
chmod -v u+w /usr/lib/libtcl8.6.so |
|
|
|
make install-private-headers |
|
|
|
ln -sfv tclsh8.6 /usr/bin/tclsh |
|
|
|
mv -v /usr/share/man/man3/{Thread,Tcl_Thread}.3 |
|
|
|
popd || return 1 |
|
|
|
tar -xf ../tcl8.6.18-html.tar.gz --strip-components=1 |
|
mkdir -v -p /usr/share/doc/tcl-8.6.18 |
|
cp -v -r ./html/* /usr/share/doc/tcl-8.6.18
|
|
|