# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: graysky <graysky AT archlnux DOT us>
# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
# Contributor: Joël Schaerer <joel.schaerer@laposte.net>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=autojump
pkgver=21.7.1
pkgrel=1
pkgdesc="A faster way to navigate your filesystem from the command line"
arch=('any')
url="http://wiki.github.com/joelthelion/autojump"
license=('GPL3')
depends=('python')
source=(https://github.com/joelthelion/${pkgname}/archive/release-v${pkgver}.tar.gz)
sha256sums=('a3eeb53235c4a4d8bee2cad303cf1e0b3b53e59cc0814a4abe297a2672a7c20d')

prepare() {
  sed -i "s:/env python:/python3:g" ${pkgname}-release-v${pkgver}/bin/${pkgname}
}

package() {
  cd ${pkgname}-release-v${pkgver}

  ./install.sh --global --destdir "${pkgdir}"
  rm -fr "${pkgdir}"/_j
}
