forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
z-1.9.ebuild
41 lines (33 loc) · 896 Bytes
/
z-1.9.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
DESCRIPTION="Change directory command that learns visited paths"
HOMEPAGE="https://github.com/rupa/z/"
SRC_URI="https://github.com/rupa/${PN}/tarball/v${PV} -> ${P}.tar.gz"
LICENSE="WTFPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
S="${WORKDIR}/rupa-z-5dc2a86"
src_compile() {
:
}
src_install() {
insinto "/usr/share/${PN}/"
doins z.sh
doman z.1
}
pkg_postinst() {
if [[ ! ${REPLACING_VERSIONS} ]]; then
elog "To enable 'z' command you need to source /usr/share/${PN}/z.sh."
elog "Add following line to your ~/.bashrc, ~/.zshrc or equivalent"
elog "in other shells:"
elog ""
elog " [ -r /usr/share/${PN}/z.sh ] && . /usr/share/${PN}/z.sh"
elog ""
elog "See z(1) man page for usage and configuration options."
fi
}