diff --git a/autojump-git/.SRCINFO b/autojump-git/.SRCINFO new file mode 100644 index 0000000..834748a --- /dev/null +++ b/autojump-git/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Wed May 18 09:02:52 UTC 2016 +pkgbase = autojump-git + pkgdesc = A faster way to navigate your filesystem from the command line + pkgver = 22.3.0.r14.g9a6e286 + pkgrel = 1 + url = http://github.com/joelthelion/autojump + arch = any + license = GPL3 + makedepends = git + depends = python + provides = autojump + conflicts = autojump + source = git+https://github.com/joelthelion/autojump.git + md5sums = SKIP + +pkgname = autojump-git + diff --git a/autojump-git/PKGBUILD b/autojump-git/PKGBUILD new file mode 100644 index 0000000..3c206b1 --- /dev/null +++ b/autojump-git/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Cedric Girard +# Contributor: Jason Axelson +# Contributor: Sean Escriva +# Contributor: William Ting + +pkgname=autojump-git +pkgver=22.3.0.r14.g9a6e286 +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=('python') +makedepends=('git') +conflicts=('autojump') +provides=('autojump') +replaces=() +backup=() +source=('git+https://github.com/joelthelion/autojump.git') +md5sums=('SKIP') + +_gitname="autojump" + +pkgver() { + cd ${_gitname} + git describe --long --tags | sed 's/^release\-v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd ${_gitname} + sed -i 's$#!/usr/bin/env python$#!/usr/bin/env python3$' bin/autojump bin/*.py +} + +package() { + cd ${_gitname} + ./install.py --prefix 'usr/' --destdir "${pkgdir}" --zshshare 'usr/share/zsh/site-functions' + + cd "${pkgdir}"/usr/share/$_gitname + for i in $_gitname.* ; do + ln -s /usr/share/$_gitname/$i \ + "${pkgdir}"/etc/profile.d/$i + done + + #https://github.com/joelthelion/autojump/pull/339 + sed -i "s!/usr/local/!/usr/!g" "${pkgdir}"/etc/profile.d/$_gitname.sh + #FS#43762 + sed -i '27,31d' "${pkgdir}"/etc/profile.d/$_gitname.sh +} + + +# vim:set ts=4 sw=4 et: