updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / tkxext / PKGBUILD
blob8b6989f7408023fee8b046927323261d1209b088
1 # Contributor: CJ Niemira <siege@siege.org>
2 pkgname=tkxext
3 pkgver=3.6.12
4 pkgrel=1
5 pkgdesc="An extension to Tcl/Tk that provides the abilities to embed foreign applications (based on their title), record events to a script, and playback that script."
6 arch=('i686', 'x86_64')
7 url="http://www.xmission.com/~georgeps/implementation/software/TkXext/"
8 license=('bsd')
9 depends=('tk>=8.5')
10 source=($url/TkXext-$pkgver.tar.bz2)
11 md5sums=('dc44cb488db021d1dd795d5d649efa68')
13 build() {
14   cd $startdir/src/TkXext-$pkgver
16   perl -pi -e "s/\d+.\d+.\d+/$pkgver/g" pkgIndex.tcl
18   perl -pi -e "s/\d+.\d+.\d+/$pkgver/g" build.conf
19   perl -pi -e 's/\/gps\/runtime8\.4/\/usr/g' build.conf
20   perl -pi -e 's/84/8\.5/g' build.conf
21   tclsh build.tcl
23   mkdir -p $startdir/pkg/usr/lib/$pkgname$pkgver
24   install -m 755 TkXext.so $startdir/pkg/usr/lib/$pkgname$pkgver
25   install -m 644 pkgIndex.tcl $startdir/pkg/usr/lib/$pkgname$pkgver
27   mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
28   install -m 444 LICENSE $startdir/pkg/usr/share/licenses/$pkgname