updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / amphetype-svn / PKGBUILD
blob0a9b57e921a29a4cf5b989dcf5641e6d61afeb83
1 pkgname=amphetype-svn
2 pkgver=27
3 pkgrel=5
4 pkgdesc="A layout-agnostic typing program aimed at people who don't need an on-screen keyboard"
5 arch=("i686" "x86_64")
6 url="http://code.google.com/p/amphetype/"
7 license=("GPL3")
8 depends=('qt' 'python2' 'python2-qt' 'sqlite3')
9 provides=("amphetype")
10 conflicts=("amphetype")
11 source=(amphetype.desktop amphetype.patch)
12 md5sums=('fa29364a99caa1c68332dc8f65e6df8d'
13          'd54433a7a254e1284c93485d48fbbac5')
15 _svntrunk="http://amphetype.googlecode.com/svn/trunk"
16 _svnmod="amphetype"
18 build() {
19         cd $srcdir
21         if [ -d $_svnmod/.svn ]; then
22                 (cd $_svnmod && svn up -r $pkgver)
23         else
24                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25         fi
27         msg "SVN checkout done or server timeout"
28         msg "Starting make..."
30         mkdir -p $pkgdir/{usr/share/applications,opt/amphetype,usr/bin}
32         cd $_svnmod
33         patch -fp0 < $srcdir/amphetype.patch
34         chmod +x Amphetype.py
36         cp -r * $pkgdir/opt/amphetype
37         rm -rf `find $pkgdir -type d -name .svn`
38         cp $srcdir/amphetype.desktop $pkgdir/usr/share/applications
39         ln -s /opt/amphetype/Amphetype.py $pkgdir/usr/bin/amphetype