updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / thunar-actions-plugin-git / PKGBUILD
blob3e463d087452f0c2b348fd684917ffbb34b41f26
1 # Contributor: 4javier <4javier4@gmail.com>
2 pkgname=thunar-actions-plugin-git
3 pkgver=6546
4 pkgrel=1
5 pkgdesc="Git version of Thunar contestual menu plugin."
6 arch=('i686' 'x86_64')
7 url="http://goodies.xfce.org/projects/thunar-plugins/thunar-actions-plugin/"
8 license=('GPL')
9 depends=(thunar)
10 makedepends=(gcc git xfce4-dev-tools)
11 provides=(thunar-actions-plugin)
12 conflicts=(thunar-actions-plugin)
13 source=()
14 md5sums=()
16 _gittrunk=git://git.xfce.org/thunar-plugins/thunar-actions-plugin
17 _gitmod=thunar-actions-plugin
20 build() {
21   cd ${srcdir}
22   
23   if [ -d ${srcdir}/$_gitmod ]; then
24     if (cd $_gitmod && git pull origin) |
25         grep 'Already up-to-date'; then
26                 msg "No need to rebuild";
27               exit;
28     fi
29     msg "Local files are updated."
30   else
31     git clone $_gittrunk 
32   fi
33   
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   cp -r $_gitmod $_gitmod-build
38   cd ${srcdir}/$_gitmod-build
40   ./autogen.sh --prefix=$(pkg-config --variable prefix thunarx-1)
41   make || return 1
42   make DESTDIR="$pkgdir" install
44   rm -rf ${srcdir}/$_gitmod-build