updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / gedit-whitespace-terminator-git / PKGBUILD
blobc63f58f3f916799c35fe687136fbbd14f2a8850d
1 # Maintainer: Simon Sapin <simon dot sapin at exyr dot org>
2 pkgname=gedit-whitespace-terminator-git
3 pkgver=20110905
4 pkgrel=1
5 pkgdesc="Plugin for Gedit 3 that strips trailing whitespace on saving."
6 arch=('any')
7 url="https://github.com/Kozea/Gedit-WhiteSpace-Terminator"
8 license=('custom:BSD')
9 depends=('gedit>=3')
10 makedepends=('git')
12 _gitroot="git://github.com/Kozea/Gedit-WhiteSpace-Terminator.git"
13 _gitname="gedit-whitespace-terminator"
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 $_gitname
24     cd $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
29   install -d $pkgdir/usr/lib/gedit/plugins
30   install -m644 whitespaceterminator.plugin whitespaceterminator.py $pkgdir/usr/lib/gedit/plugins
32   install -d $pkgdir/usr/share/licenses/$pkgname
33   install -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname