2019-11-07 11:07:47 +01:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
2014-03-10 15:35:05 +01:00
|
|
|
# Contributor: Jason Axelson <jason.axelsonATgmail.com>
|
|
|
|
# Contributor: Sean Escriva <sean.escrivaATgmail.com>
|
|
|
|
# Contributor: William Ting <william.h.tingATgmail.com>
|
|
|
|
|
|
|
|
pkgname=autojump-git
|
2019-11-07 11:07:47 +01:00
|
|
|
pkgver=22.5.3.r0.g06e082c
|
2021-01-12 09:13:11 +01:00
|
|
|
pkgrel=4
|
2014-03-10 15:35:05 +01:00
|
|
|
pkgdesc="A faster way to navigate your filesystem from the command line"
|
|
|
|
arch=(any)
|
2019-11-07 11:07:47 +01:00
|
|
|
url="http://github.com/wting/autojump"
|
2014-03-10 15:35:05 +01:00
|
|
|
license=('GPL3')
|
2019-11-26 12:16:46 +01:00
|
|
|
depends=('python>=3.8')
|
2014-03-10 15:35:05 +01:00
|
|
|
makedepends=('git')
|
|
|
|
conflicts=('autojump')
|
|
|
|
provides=('autojump')
|
2019-11-07 11:12:54 +01:00
|
|
|
source=('git+https://github.com/wting/autojump.git')
|
2014-03-10 15:35:05 +01:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
_gitname="autojump"
|
2021-01-12 09:13:11 +01:00
|
|
|
_python="python3.9"
|
2014-03-10 15:35:05 +01:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd ${_gitname}
|
2016-05-18 11:03:01 +02:00
|
|
|
git describe --long --tags | sed 's/^release\-v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
2014-03-10 15:35:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd ${_gitname}
|
2015-07-30 15:36:01 +02:00
|
|
|
sed -i 's$#!/usr/bin/env python$#!/usr/bin/env python3$' bin/autojump bin/*.py
|
2014-03-10 15:35:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${_gitname}
|
2015-07-30 15:36:01 +02:00
|
|
|
./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
|
|
|
|
|
2019-11-25 17:05:43 +01:00
|
|
|
# FS#60929
|
|
|
|
install -d "${pkgdir}/usr/lib/$_python/site-packages"
|
|
|
|
mv ${pkgdir}/usr/bin/*.py "${pkgdir}/usr/lib/$_python/site-packages"
|
|
|
|
python -m compileall -d /usr/lib "${pkgdir}/usr/lib"
|
|
|
|
python -O -m compileall -d /usr/lib "${pkgdir}/usr/lib"
|
|
|
|
|
|
|
|
# FS#49601
|
|
|
|
install -d "${pkgdir}"/usr/share/fish/completions
|
|
|
|
mv "${pkgdir}"/etc/profile.d/$_gitname.fish "${pkgdir}"/usr/share/fish/completions
|
|
|
|
|
|
|
|
# https://github.com/joelthelion/autojump/pull/339
|
2015-07-30 15:36:01 +02:00
|
|
|
sed -i "s!/usr/local/!/usr/!g" "${pkgdir}"/etc/profile.d/$_gitname.sh
|
2019-11-25 17:05:43 +01:00
|
|
|
sed -i "s!/build/${pkgname}/pkg/${pkgname}/!/!g" "${pkgdir}"/etc/profile.d/$_gitname.sh
|
|
|
|
|
|
|
|
# FS#43762
|
2015-07-30 15:36:01 +02:00
|
|
|
sed -i '27,31d' "${pkgdir}"/etc/profile.d/$_gitname.sh
|
2014-03-10 15:35:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# vim:set ts=4 sw=4 et:
|