Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions autojump/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# $Id$
# Maintainer: Jaroslav Lichtblau <svetlemodry@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=22.3.0
pkgrel=1
pkgdesc="A faster way to navigate your filesystem from the command line"
arch=('any')
url="https://github.com/wting/autojump"
license=('GPL3')
depends=('python')
source=($pkgname-$pkgver.tar.gz::https://github.com/wting/$pkgname/archive/release-v$pkgver.tar.gz)
sha256sums=('800f444b820b3a985e1da2d183fb5e2e23753a2ade53d6e1195678c650379a03')

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

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

SHELL=/bin/bash ./install.py --destdir "$pkgdir" \
--prefix 'usr/' \
--zshshare 'usr/share/zsh/site-functions'

cp "$pkgdir"/usr/share/$pkgname/"$pkgname"* "$pkgdir"/etc/profile.d/

#https://github.com/joelthelion/autojump/pull/339
sed -i "s:/usr/local/:/usr/:g" "${pkgdir}"/etc/profile.d/$pkgname.sh
sed -i "s:/build/autojump/pkg/autojump/:/:g" "${pkgdir}"/etc/profile.d/$pkgname.sh
#FS#43762
sed -i '27,31d' "${pkgdir}"/etc/profile.d/$pkgname.sh
}