updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / blt / PKGBUILD
blob36ba236a14ab69cc6508891a552f56b1a7aa6fab
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>
5 pkgname=blt
6 pkgver=2.4z
7 pkgrel=9
8 pkgdesc="Adds new commands and widgets to the Tcl interpreter."
9 url="http://blt.sourceforge.net"
10 license="custom"
11 depends=('tk')
12 makedepends=()
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
17         blt2.4-tk8.5.patch
18         blt2.4z-destdir.patch
19         blt2.4z-norpath.patch
20         blt2.4z-noexactversion.patch
21         blt.diff
22         bltText.patch
23         COPYING)
24 md5sums=('aa2ed73080f3005d9c2a3b5e57ab1eff'
25          '0cebd9fdf8141fe3858742886eb8fa19'
26          '870ef8eb6c54dd08c15dfe0aceb58ac8'
27          'c02f5d825fa9d1f8bfd39ee262e7ff27'
28          '6f9b475626eee57af5894765e3b6731d'
29          '40db0970d0fafeed4312fc64c7cf700b'
30          '269d703bd10feb6127e384f93c1c8cda'
31          '5d0287412b5f7807ab2237e59e327db4'
32          '57b29fd72fd9f022d489fe965cfc2cf1'
33          '49ab6c4bd72e045108c92d839368df04')
34 build() {
35         # Fix for the man directory
36         mkdir -p ${pkgdir}/usr/share/man
38         # Add license
39         mkdir -p ${pkgdir}/usr/share/licenses/blt
40         cp ${srcdir}/COPYING ${pkgdir}/usr/share/licenses/blt
43         # Patch, configure
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 
55         # Compile, install
56         make -j 1 || return 1
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