1 # Maintainer: Oleg Smirnov <oleg.smirnov@gmail.com>
2 # Contributor: Jason Taylor <jftaylor21@gmail.com>
3 # Contributor: Christophe Gueret <tolgam@homegnu.net>
4 # Contributor: b00rt00s <b_ged@linuksowo.pl>
8 pkgdesc="Adds new commands and widgets to the Tcl interpreter."
9 url="http://blt.sourceforge.net"
13 arch=('i686' 'x86_64')
14 source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/BLT${pkgver}.tar.gz
15 http://downloads.sourceforge.net/blt/blt2.4z-patch-2
16 http://jfontain.free.fr/blt2.4z-patch-64
20 blt2.4z-noexactversion.patch
24 md5sums=('aa2ed73080f3005d9c2a3b5e57ab1eff'
25 '0cebd9fdf8141fe3858742886eb8fa19'
26 '870ef8eb6c54dd08c15dfe0aceb58ac8'
27 'c02f5d825fa9d1f8bfd39ee262e7ff27'
28 '6f9b475626eee57af5894765e3b6731d'
29 '40db0970d0fafeed4312fc64c7cf700b'
30 '269d703bd10feb6127e384f93c1c8cda'
31 '5d0287412b5f7807ab2237e59e327db4'
32 '57b29fd72fd9f022d489fe965cfc2cf1'
33 '49ab6c4bd72e045108c92d839368df04')
35 # Fix for the man directory
36 mkdir -p ${pkgdir}/usr/share/man
39 mkdir -p ${pkgdir}/usr/share/licenses/blt
40 cp ${srcdir}/COPYING ${pkgdir}/usr/share/licenses/blt
44 cd ${srcdir}/${pkgname}${pkgver}
45 patch -Np1 -i ${srcdir}/blt2.4z-patch-64 || return 1
46 patch -Np1 -i ${srcdir}/blt2.4-tk8.5.patch || return 1
47 patch -Np1 -i ${srcdir}/blt2.4z-norpath.patch || return 1
48 patch -Np0 -i ${srcdir}/blt2.4z-noexactversion.patch || return 1
50 patch -Np1 -i ${srcdir}/blt.diff || return 1
51 patch -Np1 -i ${srcdir}/bltText.patch || return 1
53 ./configure --prefix=/usr --with-tcl=/usr/lib --with-x --x-includes=/usr/include --x-libraries=/usr/lib --mandir=/usr/share/man
57 make -j 1 INSTALL_ROOT=${pkgdir} install
59 # Delete man file, it is still owned by extra/tk
60 rm ${pkgdir}/usr/share/man/mann/bitmap.n