updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / restedit-git / PKGBUILD
blobb8a20ace76cfddd79ca247dce613efb0432f83b2
1 pkgname=restedit-git
2 pkgver=20101110
3 pkgrel=1
4 pkgdesc="RESTful External Editor client helper application"
5 arch=('any')
6 license=('ZPL')
7 url="http://git.hforge.org/?p=restedit.git"
8 depends=('python2' 'tk')
9 provides=('restedit')
10 conflicts=('restedit')
12 _gitroot="git://git.hforge.org/restedit"
13 _gitname="restedit"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   #
34   # BUILD HERE
35   #
37   filename=restedit.py
38   destination="$pkgdir/usr/bin/$filename"
39   install -D -m 0755 "$filename" "$destination" || return 1
40   sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/env python2/g' "$destination"