1
0
mirror of https://github.com/wting/autojump synced 2026-03-02 03:49:26 +00:00

remove empty file, order a bit

This commit is contained in:
Joël Schaerer
2009-02-18 15:14:10 +01:00
parent bcd5476c6d
commit cbc030284e
2 changed files with 0 additions and 0 deletions

32
packaging/PKGBUILD Normal file
View File

@@ -0,0 +1,32 @@
# Contributor: Joël Schaerer <joel.schaerer@laposte.net>
pkgname=autojump
pkgver=20090210
pkgrel=3
pkgdesc="A faster way to navigate your filesystem from the command line"
arch=(i686 x86_64)
url="http://wiki.github.com/joelthelion/autojump"
license=('GPL')
depends=('bash' 'python')
makedepends=('git')
install=(autojump.install)
_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
git clone $_gitroot && cd $_gitname || return 1
fi
gzip -f autojump.1
msg "GIT checkout done"
install -Dm 755 autojump ${pkgdir}/usr/bin/autojump
install -Dm 755 autojump.sh ${pkgdir}/etc/profile.d/autojump.sh
install -Dm 644 autojump.1.gz ${pkgdir}/usr/share/man/man1/autojump.1.gz
}

View File

@@ -0,0 +1,21 @@
#This code is licensed under the GPL, version 3.
#A full copy of the license can be obtained by contacting the author at the following email adress: joel.schaerer@laposte.net
# arg 1: the new package version
post_install() {
echo " > You need to source /etc/profile in your ~/.bashrc for this to work"
echo " > Only guaranteed to work with bash"
echo " > man autojump for instructions."
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
/bin/true
}
op=$1
shift
$op $*