updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / thunar-volman-git / PKGBUILD
blobe35b6c362dbe8577866fb9e9e5c7c74ce4e26de4
1 # Maintainer: Gadget3000 <gadget3000 at msn dot com>
2 pkgname=thunar-volman-git
3 pkgver=20110831
4 pkgrel=1
5 pkgdesc="automatic management for removeable devices in thunar"
6 arch=(i686 x86_64)
7 license=('GPL2')
8 url="http://goodies.xfce.org/projects/thunar-plugins/thunar-volman"
9 groups=('xfce4-goodies-git')
10 depends=('thunar')
11 makedepends=('git' 'intltool' 'pkgconfig' 'xfce4-dev-tools')
12 conflicts=(thunar-volman)
13 provides=(thunar-volman)
14 options=('!libtool')
15 install=${pkgname}.install
16 source=()
17 md5sums=()
19 _gitroot=git://git.xfce.org/xfce/thunar-volman
20 _gitname=thunar-volman
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" "$_gitname"
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting build..."
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   #
41   # BUILD HERE
42   #
43   
44   ./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
45     --localstatedir=/var --disable-static
46   make
49 package() {
50   cd "$srcdir/$_gitname-build"
51   make DESTDIR="$pkgdir/" install