2009-02-10 16:13:06 +00:00
|
|
|
# Contributor: Joël Schaerer <joel.schaerer@laposte.net>
|
|
|
|
pkgname=autojump
|
2009-02-10 17:32:47 +00:00
|
|
|
pkgver=20090210
|
2009-02-12 19:20:26 +00:00
|
|
|
pkgrel=2
|
2009-02-10 16:13:06 +00:00
|
|
|
pkgdesc="A faster way to navigate your filesystem from the command line"
|
2009-02-12 19:20:26 +00:00
|
|
|
arch=(i686 x86_64)
|
2009-02-10 16:13:06 +00:00
|
|
|
url="http://wiki.github.com/joelthelion/autojump"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('bash' 'python')
|
|
|
|
md5sums=() #generate with 'makepkg -g'
|
2009-02-10 17:32:47 +00:00
|
|
|
install=(autojump.install)
|
2009-02-10 16:13:06 +00:00
|
|
|
|
|
|
|
_gitroot="git://github.com/joelthelion/autojump.git"
|
|
|
|
_gitname="autojump"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"
|
|
|
|
msg "Connecting to GIT server...."
|
|
|
|
|
|
|
|
if [ -d $_gitname ] ; then
|
|
|
|
cd $_gitname && git pull origin || return 1
|
|
|
|
msg "The local files are updated."
|
|
|
|
else
|
2009-02-10 17:32:47 +00:00
|
|
|
git clone $_gitroot && cd $_gitname || return 1
|
2009-02-10 16:13:06 +00:00
|
|
|
fi
|
2009-02-10 17:32:47 +00:00
|
|
|
gzip -f autojump.1
|
2009-02-10 16:13:06 +00:00
|
|
|
|
|
|
|
msg "GIT checkout done"
|
|
|
|
install -Dm 755 autojump ${pkgdir}/usr/bin/autojump
|
|
|
|
install -Dm 755 autojump.sh ${pkgdir}/etc/profile.d/autojump.sh
|
2009-02-10 17:32:47 +00:00
|
|
|
install -Dm 644 autojump.1.gz ${pkgdir}/usr/share/man/man1/autojump.1.gz
|
2009-02-10 16:13:06 +00:00
|
|
|
}
|