use python3 and fix profile file
This commit is contained in:
parent
78ebd0c1e7
commit
3ea8ed2b94
3 changed files with 16 additions and 14 deletions
4
.SRCINFO
4
.SRCINFO
|
@ -1,13 +1,11 @@
|
||||||
pkgbase = autojump-git
|
pkgbase = autojump-git
|
||||||
pkgdesc = A faster way to navigate your filesystem from the command line
|
pkgdesc = A faster way to navigate your filesystem from the command line
|
||||||
pkgver = release.v21.6.9.149.g72313db
|
pkgver = release.v21.7.1.191.g113a84f
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = http://github.com/joelthelion/autojump
|
url = http://github.com/joelthelion/autojump
|
||||||
install = install
|
|
||||||
arch = any
|
arch = any
|
||||||
license = GPL3
|
license = GPL3
|
||||||
makedepends = git
|
makedepends = git
|
||||||
depends = bash
|
|
||||||
depends = python
|
depends = python
|
||||||
provides = autojump
|
provides = autojump
|
||||||
conflicts = autojump
|
conflicts = autojump
|
||||||
|
|
20
PKGBUILD
20
PKGBUILD
|
@ -4,13 +4,13 @@
|
||||||
# Contributor: William Ting <william.h.tingATgmail.com>
|
# Contributor: William Ting <william.h.tingATgmail.com>
|
||||||
|
|
||||||
pkgname=autojump-git
|
pkgname=autojump-git
|
||||||
pkgver=release.v21.6.9.149.g72313db
|
pkgver=release.v21.7.1.191.g113a84f
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A faster way to navigate your filesystem from the command line"
|
pkgdesc="A faster way to navigate your filesystem from the command line"
|
||||||
arch=(any)
|
arch=(any)
|
||||||
url="http://github.com/joelthelion/autojump"
|
url="http://github.com/joelthelion/autojump"
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
depends=('bash' 'python')
|
depends=('python')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
conflicts=('autojump')
|
conflicts=('autojump')
|
||||||
provides=('autojump')
|
provides=('autojump')
|
||||||
|
@ -18,7 +18,6 @@ replaces=()
|
||||||
backup=()
|
backup=()
|
||||||
source=('git+https://github.com/joelthelion/autojump.git')
|
source=('git+https://github.com/joelthelion/autojump.git')
|
||||||
md5sums=('SKIP')
|
md5sums=('SKIP')
|
||||||
install='install'
|
|
||||||
|
|
||||||
_gitname="autojump"
|
_gitname="autojump"
|
||||||
|
|
||||||
|
@ -29,12 +28,23 @@ pkgver() {
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd ${_gitname}
|
cd ${_gitname}
|
||||||
sed -i 's$#!/usr/bin/env python$#!/usr/bin/env python2$' bin/autojump bin/*.py
|
sed -i 's$#!/usr/bin/env python$#!/usr/bin/env python3$' bin/autojump bin/*.py
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd ${_gitname}
|
cd ${_gitname}
|
||||||
/usr/bin/env python2 ./install.py --prefix 'usr/' --destdir "${pkgdir}" --zshshare 'usr/share/zsh/site-functions'
|
./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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
6
install
6
install
|
@ -1,6 +0,0 @@
|
||||||
function post_install {
|
|
||||||
echo " > Please add the line to ~/.bashrc :"
|
|
||||||
echo " > [[ -s /etc/profile.d/autojump.bash ]] && . /etc/profile.d/autojump.bash"
|
|
||||||
echo " > Or substitute ~/.zshrc and /etc/profile.d/autojump.zsh"
|
|
||||||
echo " > You need to run 'source ~/.bashrc' before you can start using autojump."
|
|
||||||
}
|
|
Loading…
Reference in a new issue