updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / iwidgets / PKGBUILD
blobeb695b04a3453d5c3055900c1b738e7ed39fb226
1 # Contributor: lolilolicon <lolilolicon#gmail#com>
2 # Contributor: David Valentim Dias <dvdscripter@gmail.com>
4 pkgname=iwidgets
5 pkgver=4.0.1
6 pkgrel=5
7 pkgdesc="An object-oriented mega-widget set which extends Tcl/Tk"
8 url="http://incrtcl.sourceforge.net/iwidgets/"
9 license="custom"
10 arch=('i686' 'x86_64')
11 depends=('itk>=3.3')
12 makedepends=(autoconf)
13 source=(http://downloads.sourceforge.net/sourceforge/incrtcl/$pkgname$pkgver.tar.gz
14         $pkgname$pkgver.patch)
15 md5sums=('0e9c140e81ea6015b56130127c7deb03'
16          'bd2a2fed0c94f4770b779e618db6d24b')
18 build() {
19   cd "$srcdir/$pkgname$pkgver"
20   patch -Nup0 < ../$pkgname$pkgver.patch
21   autoreconf
22   ./configure --prefix=/usr --mandir=/usr/share/man \
23     --with-itcl=/usr/lib/itcl3.4 --with-itk=/usr/lib/itk3.3
24   make
27 package() {
28   cd "$srcdir/$pkgname$pkgver"
29   make INSTALL_ROOT="$pkgdir" install
30   install -Dm644 "$srcdir/$pkgname$pkgver/license.terms" \
31     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
33   # Fix broken symlink.
34   ln -sf -T $pkgname$pkgver "$pkgdir/usr/lib/$pkgname"
36   # Fix broken mandir.
37   mv "$pkgdir"/usr/{,share/}man