updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / dex-git / PKGBUILD
blobba0c1b2895d72ad2fba380bae05402d0cb989372
1 # Contributor: mutantmonkey <mutantmonkey@gmail.com>
2 pkgname=dex-git
3 pkgver=20111116
4 pkgrel=1
5 pkgdesc="A program to execute DesktopEntry files of type Application, primarily for window managers that do not implement the Freedesktop autostart specification"
6 url="https://github.com/jceb/dex"
7 arch=('any')
8 license=('GPL2')
9 depends=('python2')
10 makedepends=('git')
11 provides=('dex')
12 conflicts=('dex')
13 source=()
14 md5sums=()
15 sha256sums=()
17 _gitroot="https://github.com/jceb/dex.git"
18 _gitname="dex"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [[ -d "$_gitname" ]]; then
25     cd "$_gitname" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot" "$_gitname"
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting build..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   sed -i 's/\/usr\/bin\/python/\/usr\/bin\/python2/' dex || return 1
41 package() {
42   cd "$srcdir/$_gitname-build"
43   install -m755 -D dex $pkgdir/usr/bin/dex
46 # vim:set ts=2 sw=2 et: