aboutsummaryrefslogtreecommitdiff
path: root/scripts/tk/build.sh
blob: 9515c270ea01d6aadfc76fd34c36d54d54640667 (plain) (blame)
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
name=tk
version=8.6.9
version_full="${version}.1"
revision=0
sources=(
    "https://prdownloads.sourceforge.net/tcl/${name}${version_full}-src.tar.gz"
)
depends=(
    "grep-3.3-0.tar.gz"
    "sed-4.7-0.tar.gz"
    "zlib-1.2.11-0.tar.gz"
    "tcl-${version}-0.tar.gz"
)

function prepare() {
    tar xf ${name}${version_full}-src.tar.gz
    cd ${name}${version}
}

function build() {
    cd unix
    ./configure --prefix=$prefix
    make -j${maxjobs}
}

function package() {
    make install DESTDIR="${destdir}"
    chmod 755 "${destdir}/${prefix}"/lib/*.so
}