updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / uligo / PKGBUILD
blob88da9b359558fe98052e22cf0b89fd9461278076
1 # Contributor:  <mathieui@mathieui.net>
2 pkgname=uligo
3 pkgver=0.3
4 _pkgver=03
5 pkgrel=1
6 pkgdesc='uliGo is a program to practice solving go problems. '
7 arch="any"
8 url="http://www.u-go.net/uligo/"
9 license='GPL'
10 depends=('python')
11 conflicts='uligo-hg'
12 source=("http://dl.u-go.net/$pkgname/download/$pkgname$_pkgver.tar.gz")
13 md5sums=('ea17c666accaaf36441626e25ff07264')
15 build() {
16   cd "${srcdir}/${pkgname}${_pkgver}"
17   for _i in $(ls *.py)
18   do
19       sed -i "s#whrandom#random#g" $_i
20   done
21   mkdir -p $pkgdir/usr/share/$pkgname
22   mkdir -p $pkgdir/usr/bin
23   cp -R ./* $pkgdir/usr/share/$pkgname
24   echo -e '#!/bin/bash'"\ncd /usr/share/$pkgname\n python $pkgname.py" > $pkgdir/usr/bin/$pkgname
25   chmod +x $pkgdir/usr/bin/$pkgname