void-packages/srcpkgs/autojump/template
2019-03-01 12:04:45 -03:00

23 lines
713 B
Bash

# Template file for 'autojump'
pkgname=autojump
version=22.5.1
revision=1
wrksrc=${pkgname}-release-v${version}
hostmakedepends="python"
depends="python"
archs=noarch
short_desc="A cd command that learns"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-3"
homepage="https://github.com/wting/autojump"
distfiles="https://github.com/wting/autojump/archive/release-v${version}.tar.gz"
checksum=765fabda130eb4df70d1c1e5bc172e1d18f8ec22c6b89ff98f1674335292e99f
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() {
sed -i "s:${DESTDIR}::" ${DESTDIR}/etc/profile.d/autojump.sh
}