summaryrefslogtreecommitdiff
path: root/repo/core/tcl.xibuild
blob: 6dffe76421b1c9de99e529f35fc9ef39d2e5e6bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

DEPS=(zlib)

SOURCE=https://github.com/tcltk/tcl
DESC="the Tool Command language, a robust general purpose scripting language"


build () {
    SRCDIR=$(pwd)
    cd unix
    ./configure --prefix=/usr --mandir=/usr/share/man $([ "$(uname -m)" = x86_64 ] && echo --enable-64bit)

    make test

    make DESTDIR=$PKG_DEST install

    chmod -v u+w $PKG_DEST/usr/lib/libtcl8.6.so

    make DESTDIR=$PKG_DEST install-private-headers
}

package () {
    ln $PKG_DEST/usr/bin/tclsh* $PKG_DEST/usr/bin/tclsh
    cp -f tclsh9 $PKG_DEST/usr/bin/tclsh
    mv $PKG_DEST/usr/share/man/man3/{Thread,Tcl_Thread}.3

}