updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bashtrash / PKGBUILD
blobcd23115fd695b11d701723aa3fc085c52c86c6fd
1 #Maintainer: Giorgio Gilestro <giorgio@gilest.ro>
3 pkgname=bashtrash
4 pkgver=20101105
5 pkgrel=1
6 pkgdesc="Freedesktop-complient trashcan implemented in bash script"
7 arch=('any')
8 url="https://github.com/robrwo/bashtrash/blob/master/trash"
9 license=('GPL')
10 makedepends=('git')
12 _gitroot="https://github.com/robrwo/bashtrash.git"
13 _gitname="bashtrash"
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"
32   
33   install -D trash $pkgdir/usr/bin/trash
34   
35