VERSION=2.9.5 BUILD=1 ARCH=i386 TAG=OPT PKGNAME=joe-$VERSION-$ARCH-$BUILD MAINTAINER="David Cantrell " IGNOREPATH=/tmp:/proc:/dev:/root:/var:/a STRIPLIB=y STRIPBIN=y PROGNAME="Joe text editor" DESC="\ Joe text editor v$VERSION\n\ \n\ Joseph H. Allen's easy to use text editor, similar to WordStar[tm]." compile() { tar xvzf $CWD/joe-$VERSION.tgz cd joe-$VERSION zcat $CWD/joe-$VERSION.diff.gz | patch -p1 --backup --verbose --suffix=.orig make make termidx } install() { cp joe termidx /usr/bin ( cd /usr/bin rm -rf jstar ; ln -sf joe jstar rm -rf jmacs ; ln -sf joe jmacs rm -rf jpico ; ln -sf joe jpico rm -rf rjoe ; ln -sf joe rjoe ) mkdir -p /usr/lib/joe cp joerc jstarrc jmacsrc jpicorc rjoerc /usr/lib/joe cp joe.1 /usr/man/man1 mkdir -p /usr/doc/joe-$VERSION cp ChangeLog INFO LIST README TODO VERSION /usr/doc/joe-$VERSION }