void-packages/srcpkgs/autojump/template

24 lines
733 B
Bash

# Template file for 'autojump'
pkgname=autojump
version=22.5.3
revision=3
wrksrc="${pkgname}-release-v${version}"
hostmakedepends="python3"
depends="python3"
short_desc="Self-learning cd command"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/wting/autojump"
distfiles="https://github.com/wting/autojump/archive/release-v${version}.tar.gz"
checksum=00daf3698e17ac3ac788d529877c03ee80c3790472a85d0ed063ac3a354c37b1
python_version=3
do_install() {
# The install script does some naive checks
./install.py -fd ${DESTDIR} -p ${DESTDIR}/usr -z ${DESTDIR}/usr/share/zsh/site-functions/
}
post_install() {
vsed -i "s:${DESTDIR}::" ${DESTDIR}/etc/profile.d/autojump.sh
}