summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e6b6c13e41b21d62423d15b7c926306b3c73c08d (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
36
# Maintainer: Paulo Matias <matias@ufscar.br>

pkgname=tk-itk3
pkgver=3.4.2
pkgrel=3
pkgdesc="OOP extension for Tk, version 3.4"
arch=('x86_64')
url="http://incrtcl.sourceforge.net/"
license=('custom')
depends=('itcl3' 'tk')
source=("https://downloads.sourceforge.net/project/incrtcl/%5BIncr%20Tcl_Tk%5D-source/Itk%20$pkgver/itk$pkgver.tar.gz")
sha256sums=('8e5746de402d4ac9920f35793a1d328cf084b0c3d6af8b057e00fd37c82ad2ec')

build() {
  cd itk${pkgver%.*}
  CFLAGS+=' -Wno-error=incompatible-pointer-types'
  ./configure \
    --prefix=/usr \
    --mandir=/usr/share/man \
    --enable-64bit \
    --with-itcl=/usr/lib/itcl3.4
  make
}

package() {
  cd itk${pkgver%.*}
  make DESTDIR="${pkgdir}" install
  install -Dm644 license.terms "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  
  # conflict with tk-itk (latest version)
  rm -rf "$pkgdir"/usr/share/man
  install -dm755 "$pkgdir"/usr/include/itk${pkgver%.*}/generic
  mv "$pkgdir"/usr/include/*.h "$pkgdir"/usr/include/itk${pkgver%.*}/generic

  rmdir "${pkgdir}/usr/bin"
}