summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23b22af79b141c5d84ee2c69cd672dc191a9abfb (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
31
32
33
34
35
pkgname=tkblt
pkgver=3.2.23
pkgrel=1
pkgdesc="Adds a new command (vector) and widgets (graph and barchart) to the Tcl interpreter."
url="https://github.com/wjoye/tkblt"
license=("BSD")
depends=('tk')
conflicts=('blt_tcl85' 'blt')
arch=('i686' 'x86_64')
source=("${pkgname}-${pkgver}.zip::https://github.com/wjoye/tkblt/archive/V${pkgver}.zip")
sha256sums=('66b14c32eebf2c7289b49cbb555fa24d83980516719fe24a3166bc78e693759f')

build() {
  # configure
  cd ${srcdir}/${pkgname}-${pkgver}

  ./configure \
    --prefix=/usr \
    --with-tcl=/usr/lib \
    --with-x --x-includes=/usr/include \
    --x-libraries=/usr/lib \
    --mandir=/usr/share/man

  # Compile
  make
}

package() {
  # Fix for the man directory
  mkdir -p ${pkgdir}/usr/share/man

  cd ${srcdir}/${pkgname}-${pkgver}
  make -j 1 DESTDIR=${pkgdir} install
  rm ${pkgdir}/usr/lib/tkbltConfig.sh
}