summaryrefslogtreecommitdiff
path: root/tk/build.sh
blob: 46c57af1cd99c4ac07bdd62eea1b9fa78ee8c7f6 (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
31
32
#!/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"
)
build_depends=(
    "tar"
    "automake"
    "tcl==${version}"
)
depends=(
    "tcl==${version}"
)

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

function build() {
    cd unix
    ./configure --prefix=${_prefix} --with-tcl=${build_runtime}/lib
    make -j${_maxjobs}
}

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