void-packages/srcpkgs/ex-vi/template

39 lines
1.4 KiB
Bash
Raw Normal View History

2015-01-06 19:59:28 +01:00
# Template file for 'ex-vi'
pkgname=ex-vi
version=050325
revision=6
2015-01-06 19:59:28 +01:00
wrksrc="ex-${version}"
build_style=gnu-makefile
make_build_args="PREFIX=/usr TERMLIB=ncurses PRESERVEDIR=/var/tmp LARGEF=-DLARGEF"
make_install_args="INSTALL=/usr/bin/install PRESERVEDIR=/var/tmp STRIP="
2015-06-05 19:49:01 +02:00
CFLAGS=-I.
2015-01-06 19:59:28 +01:00
makedepends="ncurses-devel"
short_desc="The original ex/vi text editor (Heirloom version)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="http://ex-vi.sourceforge.net/"
2015-01-06 20:05:05 +01:00
distfiles="${SOURCEFORGE_SITE}/$pkgname/ex-${version}.tar.bz2"
2015-01-06 19:59:28 +01:00
checksum=da4be7cf67e94572463b19e56850aa36dc4e39eb0d933d3688fe8574bb632409
2015-01-06 20:05:05 +01:00
disable_parallel_build=yes
2015-01-06 19:59:28 +01:00
alternatives="
ex:/usr/bin/ex:/usr/bin/ex-ex
ex:/usr/share/man/man1/ex.1:/usr/share/man/man1/ex-ex.1
vi:/usr/bin/vi:/usr/bin/ex-vi
vi:/usr/share/man/man1/vi.1:/usr/share/man/man1/ex-vi.1
view:/usr/bin/view:/usr/bin/ex-view
view:/usr/share/man/man1/view.1:/usr/share/man/man1/ex-view.1
"
2015-01-06 19:59:28 +01:00
post_install() {
vlicense LICENSE
rm ${DESTDIR}/usr/share/man/man1/*edit.1
rm ${DESTDIR}/usr/bin/*edit ${DESTDIR}/usr/bin/vi ${DESTDIR}/usr/bin/view
ln -sf ex-ex ${DESTDIR}/usr/bin/ex-vi
ln -sf ex-ex ${DESTDIR}/usr/bin/ex-view
mv ${DESTDIR}/usr/bin/ex ${DESTDIR}/usr/bin/ex-ex
mv ${DESTDIR}/usr/share/man/man1/ex.1 ${DESTDIR}/usr/share/man/man1/ex-ex.1
mv ${DESTDIR}/usr/share/man/man1/vi.1 ${DESTDIR}/usr/share/man/man1/ex-vi.1
ln -sf ex-vi.1 ${DESTDIR}/usr/share/man/man1/ex-view.1
2015-01-06 19:59:28 +01:00
}