Skip to content

Instantly share code, notes, and snippets.

@hcraT
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hcraT/9394706 to your computer and use it in GitHub Desktop.
Save hcraT/9394706 to your computer and use it in GitHub Desktop.
# Maintainer: Jason Axelson <jason.axelsonATgmail.com>
# Contributor: Sean Escriva <sean.escrivaATgmail.com>
# Contributor: William Ting <william.h.tingATgmail.com>
# Contributor: Tarcisio Fedrizzi <tarcisio.fedrizziATgmail.com>
# PKGBUILD source is on github: https://github.com/axelson/autojump-aur
# Pull requests appreciated
# vim:set ts=4 sw=4 et:
pkgname=autojump-git
pkgver=release.v21.6.9.143.g615bb0c
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=('git+https://github.com/joelthelion/autojump.git')
md5sums=('SKIP')
install='install'
_gitname="autojump"
build() {
msg "Fixing python version in the script"
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|g' ${_gitname}/bin/autojump ${_gitname}/bin/*.py
}
package() {
cd ${_gitname}
/usr/bin/env python2 ./install.py --prefix "usr/local" --destdir "${pkgdir}" --zshshare "usr/share/zsh/site-functions"
}
pkgver() {
cd ${_gitname}
git describe --always | sed 's|-|.|g'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment