updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / tuxcmd-git / PKGBUILD
blobf16f2ea1f8414985d871818ac6dcd349e5de98a5
1 # Contributor: xduugu
2 pkgname=tuxcmd-git
3 pkgver=20090503
4 pkgrel=1
5 pkgdesc="A GTK2 file manager with two panels"
6 arch=('i686' 'x86_64')
7 url="http://tuxcmd.sourceforge.net/"
8 license=('GPL')
9 depends=('gtk2')
10 makedepends=('fpc' 'git')
11 optdepends=('gnome-vfs')
12 provides=('tuxcmd')
13 conflicts=('tuxcmd')
14 options=('!docs' '!emptydirs')
15 source=(tuxcmd.desktop)
16 md5sums=('ae435e45bf0b49fea0dae98b95ca59c5')
17 sha256sums=('729d0ed4de75213f356fa56ef081b03b1c27c1f5cc697eb92d2de43c1e3ba73c')
19 _gitroot="git://git.bzatek.net/tuxcmd/"
20 _gitname="tuxcmd"
22 build() {
23         cd "$srcdir"
24         msg "Connecting to GIT server...."
26         if [ -d $_gitname ] ; then
27                 cd $_gitname && git pull origin
28                 msg "The local files are updated."
29         else
30                 git clone $_gitroot
31         fi
33         msg "GIT checkout done or server timeout"
34         msg "Starting make..."
36         rm -rf "$srcdir/$_gitname-build"
37         cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38         cd "$srcdir/$_gitname-build"
40         make || return 1
41         make DESTDIR="$pkgdir/" install
43         # remove license and README file
44         rm -rf "$pkgdir/share"
46         install -m644 -D "$srcdir/${pkgname%-*}.desktop" "$pkgdir/usr/share/applications/${pkgname%-*}.desktop"
49 # vim:set ts=2 sw=2 noet: