#Maintainer: R S Ananda Murthy pkgname=transfig pkgver=3.2.5c pkgrel=1 zenver=66 arch=i486 source=("http://www.xfig.org/software/xfig/3.2.5/$pkgname.$pkgver.tar.gz" "Imakefile.fig2dev" "Imakefile.transfig") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/rsamurti/$pkgname/ docs=("changes" "latex.and.xfig" "notes" "readme") url=http://www.xfig.org/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "TransFig (A set of tools for exporting *.fig files to other formats)" "TransFig is a set of tools for exporting *.fig files created using" "XFig graphics program to other useful formats like *.eps, *.pdf," "and so on." ) build() { cd $startdir/src/$pkgname.$pkgver rm -f $startdir/src/$pkgname.$pkgver/fig2dev/Imakefile cp $startdir/Imakefile.fig2dev $startdir/src/$pkgname.$pkgver/fig2dev/Imakefile rm -f $startdir/src/$pkgname.$pkgver/transfig/Imakefile cp $startdir/Imakefile.transfig $startdir/src/$pkgname.$pkgver/transfig/Imakefile xmkmf make Makefiles # This sed line was suggested by Community Packager Gapan. sed -i -e 's/-O2/-O2 -march=i486 -mtune=i686/' Makefile make -j4 || exit 1 make install DESTDIR=$startdir/pkg || exit 1 make install.man DESTDIR=$startdir/pkg || exit 1 find . -perm 640 -exec chmod 644 {} \; find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 400 -exec chmod 644 {} \; find . -perm 440 -exec chmod 644 {} \; find . -perm 770 -exec chmod 755 {} \; find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 511 -exec chmod 755 {} \; find . -perm 711 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; }