#Maintainer: R S Ananda Murthy pkgname=xfig pkgver=3.2.5b pkgrel=1 zenver=72 arch=i486 source=("http://downloads.sourceforge.net/mcj/xfig.3.2.5b.full.tar.gz" "Imakefile.custom" "Fig.ad.custom" "Fig-color.ad.custom" "xfig.png") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/rsamurti/$pkgname/ docs=("changes" "readme" "LATEX.AND.XFIG" "LATEX.AND.XFIG.zh_CN" "LATEX.AND.XFIG.zh_TW") url=http://www.xfig.org/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "XFig (Facility for Interactive Generation of figures under X11)" "This package contains the binary for xfig, an interactive drawing tool" "under X. Xfig can create fig, epsf, and LaTeX files with various" "options. You also have to install the transfig package (transfig.tgz)" "so that xfig can export fig files as epsf and LaTeX files. This" "package also contains a set of basic examples of fig files. It is" "suggested to install Ghostscript Type 1 fonts. You need to install" "transfig-3.2.5 package in order export *.fig files to other formats." ) build() { cd $startdir/src/$pkgname.$pkgver rm -f Imakefile cp $startdir/Imakefile.custom $startdir/src/$pkgname.$pkgver/Imakefile rm -f Fig.ad cp $startdir/Fig.ad.custom $startdir/src/$pkgname.$pkgver/Fig.ad xmkmf # 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.all DESTDIR=$startdir/pkg || exit 1 make install.html DESTDIR=$startdir/pkg || exit 1 mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps cp $startdir/src/$pkgname.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/$pkgname.png mkdir -p $startdir/pkg/usr/share/applications cat < $startdir/pkg/usr/share/applications/$pkgname.desktop [Desktop Entry] Encoding=UTF-8 Name=XFig Comment=Facility for Interactive Generation of figures under X11 Exec=xfig -but_per_row 4 -metric -paper_size A4 -userunit mm -userscale 10 Terminal=false Type=Application Categories=Application;Graphics Icon=xfig StartupNotify=false EOF cd $startdir/pkg 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 700 -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 {} \; }