updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vteplugin-git / PKGBUILD
blobf872d73aff7d0b00890d61d9ff19826ae1cb5be1
1 pkgname=vteplugin-git
2 pkgver=20111117
3 pkgrel=1
4 pkgdesc='vteplugin'
5 arch=('any')
6 url='https://github.com/arenevier/vteplugin'
7 license=('GPL')
8 makedepends=('git')
9 depends=('vte')
11 _gitroot="http://github.com/arenevier/vteplugin.git"
12 _gitname="vteplugin"
14 build() {
15   cd "$srcdir"
16   msg "Connecting to GIT server...."
18   if [ -d $_gitname ] ; then
19     cd $_gitname && git pull origin
20     msg "The local files are updated."
21   else
22     git clone $_gitroot $_gitname
23   fi
25   msg "GIT checkout done or server timeout"
26   msg "Starting make..."
28   rm -rf "$srcdir/$_gitname-build"
29   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 package() {
34   cd "$srcdir/$_gitname-build"
35   sed -i 's/python/python2/' waf
36   ./waf configure
37   ./waf build
38   ./waf install --destdir="$pkgdir"
39   mkdir -p $pkgdir/usr/vteplugin
40   sed -i 1i"<title>Terminal</title>" vteplugin.html
41   cp vteplugin.html $pkgdir/usr/vteplugin/vteplugin.html