1 # Maintainer: Simon Sapin <simon dot sapin at exyr dot org>
2 pkgname=gedit-whitespace-terminator-git
5 pkgdesc="Plugin for Gedit 3 that strips trailing whitespace on saving."
7 url="https://github.com/Kozea/Gedit-WhiteSpace-Terminator"
12 _gitroot="git://github.com/Kozea/Gedit-WhiteSpace-Terminator.git"
13 _gitname="gedit-whitespace-terminator"
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone $_gitroot $_gitname
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