diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/asymptote |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/asymptote')
-rw-r--r-- | extra/asymptote/PKGBUILD | 37 | ||||
-rw-r--r-- | extra/asymptote/texlive.install | 20 |
2 files changed, 57 insertions, 0 deletions
diff --git a/extra/asymptote/PKGBUILD b/extra/asymptote/PKGBUILD new file mode 100644 index 000000000..57bc2bddd --- /dev/null +++ b/extra/asymptote/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 110553 2011-02-19 22:20:32Z remy $ +# Maintainer: Rémy Oudompheng <remy@archlinux.org> +# Contributor: Firmicus <francois.archlinux.org> +# Contributor: bender02 at gmx dot com + +pkgname=asymptote +pkgver=2.08 +pkgrel=1 +pkgdesc="A vector graphics language (like metapost)" +arch=('i686' 'x86_64') +url="http://asymptote.sourceforge.net/" +license=("GPL3") +depends=('texlive-core' 'gc' 'freeglut' 'gsl' 'fftw') +makedepends=('ghostscript' 'imagemagick') +optdepends=('python2: for the xasy GUI' + 'python-imaging: for the xasy GUI' + 'tix: for the xasy GUI') +source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.src.tgz) +install=texlive.install +sha1sums=(6b81336727458f7fdcc3db972f1e63b3bfc1a93b) + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure --enable-gc=/usr \ + --prefix=/usr \ + --with-latex=/usr/share/texmf/tex/latex \ + --with-context=/usr/share/texmf/tex/context + make all +} +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install-all + sed -i -e 's@env python@env python2@' ${pkgdir}/usr/share/asymptote/GUI/*.py + # this dir contains png files that are already embedded in the pdf documentation: + rm -rf ${pkgdir}/usr/share/info/asymptote +} diff --git a/extra/asymptote/texlive.install b/extra/asymptote/texlive.install new file mode 100644 index 000000000..a7e61f209 --- /dev/null +++ b/extra/asymptote/texlive.install @@ -0,0 +1,20 @@ +info_dir=usr/share/info + +post_install() { + install-info ${info_dir}/asy-faq.info.gz ${info_dir}/dir + echo ">>> updating the filename database for texlive..." + mktexlsr --quiet usr/share/texmf +} + +post_upgrade() { + post_install +} + +pre_remove() { + install-info --delete ${info_dir}/asy-faq.info.gz ${info_dir}/dir +} + +post_remove() { + echo ">>> updating the filename database for texlive..." + mktexlsr --quiet usr/share/texmf +} |