Last active
December 10, 2015 17:08
-
-
Save wting/4465652 to your computer and use it in GitHub Desktop.
autojump-git PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.tar.xz | |
pkg/ | |
src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jason Axelson <jason.axelsonATgmail.com> | |
# Contributor: Sean Escriva <sean.escrivaATgmail.com> | |
# Contributor: William Ting <william.h.tingATgmail.com> | |
# vim:set ts=4 sw=4 et: | |
pkgname=autojump-git | |
pkgver=20130106 | |
pkgrel=1 | |
pkgdesc="A faster way to navigate your filesystem from the command line" | |
arch=(any) | |
url="http://github.com/joelthelion/autojump" | |
license=('GPL3') | |
depends=('bash' 'python') | |
makedepends=('git') | |
conflicts=('autojump') | |
provides=('autojump') | |
replaces=() | |
backup=() | |
source=() | |
md5sums=() | |
_gitroot="git://github.com/joelthelion/autojump.git" | |
_gitname="autojump" | |
build() { | |
msg "connecting to git server..." | |
if [ -d ${srcdir}/${_gitname} ]; then | |
cd ${srcdir}/${_gitname} && git pull origin | |
else | |
git clone ${_gitroot} ${srcdir}/${_gitname} | |
fi | |
msg "git checkout done or server timeout" | |
rm -rf ${srcdir}/${_gitname}-build | |
git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build | |
} | |
package() { | |
cd ${srcdir}/${_gitname}-build | |
./install.sh --global --destdir "${pkgdir}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment