updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / pyusecase / PKGBUILD
blobd193996e00c884527840e117de05d9fc1e0899e5
1 pkgname=pyusecase
2 pkgver=3.5
3 pkgrel=6
4 pkgdesc="UI test tool, consisting of a generic framework and implementations for PyGTK, Tkinter, wxPython and SWT."
5 arch=(any)
6 url="http://texttest.carmen.se/index.php?page=ui_testing&n=xusecase"
7 license=('LGPL')
8 depends=(python2 pygtk)
9 backup=()
10 noextract=()
11 source=(http://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.zip)
12 md5sums=('a411f43d43796a147dfda6746804fe88')
14 replace_python_with_python2() {
15   mv $1 tmp || return 1
16   cat tmp | sed 's/python/python2/g' > $1 || return 1
17   rm tmp || return 1
18   chmod 755 $1 || return 1
21 build() {
22   cd "$srcdir"
23   install -d -m0755 $pkgdir/usr/share || return 1
24   mv $pkgname-$pkgver $pkgdir/usr/share/$pkgname || return 1
26   pyusecase=$pkgdir/usr/share/$pkgname/source/bin/$pkgname
27   replace_python_with_python2 $pyusecase
29   install -d -m0755 $pkgdir/usr/bin || return 1
30   ln -s /usr/share/$pkgname/source/bin/$pkgname $pkgdir/usr/bin/$pkgname || return 1
32   replace_python_with_python2 $pkgdir/usr/share/$pkgname/source/bin/usecase_name_chooser