39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
# Template file for 'ex-vi'
|
|
pkgname=ex-vi
|
|
version=050325
|
|
revision=10
|
|
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="
|
|
makedepends="ncurses-devel"
|
|
short_desc="The original ex/vi text editor (Heirloom version)"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-4-Clause-UC"
|
|
homepage="http://ex-vi.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/ex-${version}.tar.bz2"
|
|
checksum=da4be7cf67e94572463b19e56850aa36dc4e39eb0d933d3688fe8574bb632409
|
|
CFLAGS=-I.
|
|
disable_parallel_build=yes
|
|
|
|
alternatives="
|
|
vi:ex:/usr/bin/ex-ex
|
|
vi:ex.1:/usr/share/man/man1/ex-ex.1
|
|
vi:vi:/usr/bin/ex-vi
|
|
vi:vi.1:/usr/share/man/man1/ex-vi.1
|
|
vi:view:/usr/bin/ex-vi
|
|
vi:view.1:/usr/share/man/man1/ex-vi.1
|
|
"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
rm ${DESTDIR}/usr/share/man/man1/*edit.1
|
|
rm ${DESTDIR}/usr/share/man/man1/view.1
|
|
rm ${DESTDIR}/usr/bin/*edit ${DESTDIR}/usr/bin/vi ${DESTDIR}/usr/bin/view
|
|
mv ${DESTDIR}/usr/bin/ex ${DESTDIR}/usr/bin/ex-ex
|
|
ln -sf ex-ex ${DESTDIR}/usr/bin/ex-vi
|
|
ln -sf ex-ex ${DESTDIR}/usr/bin/ex-view
|
|
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
|
|
}
|