diff options
author | root <root@rshg054.dnsready.net> | 2012-10-08 00:19:21 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-08 00:19:21 -0700 |
commit | 962d1e81a62d7259ccb686da1a44de2bb28e73a5 (patch) | |
tree | 49f656c84d602182eb10aff70c8e0cd4d202f15d /testing/asymptote | |
parent | 682e4a12f537d598cb116ba394ceeae1eafc281e (diff) |
Mon Oct 8 00:19:21 PDT 2012
Diffstat (limited to 'testing/asymptote')
-rw-r--r-- | testing/asymptote/PKGBUILD | 43 | ||||
-rw-r--r-- | testing/asymptote/texlive.install | 20 |
2 files changed, 63 insertions, 0 deletions
diff --git a/testing/asymptote/PKGBUILD b/testing/asymptote/PKGBUILD new file mode 100644 index 000000000..42ebbfb05 --- /dev/null +++ b/testing/asymptote/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 168270 2012-10-07 11:20:35Z remy $ +# Maintainer: Rémy Oudompheng <remy@archlinux.org> +# Contributor: Firmicus <francois.archlinux.org> +# Contributor: bender02 at gmx dot com + +pkgname=asymptote +pkgver=2.20 +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' 'glu' 'gsl' 'fftw' 'libsigsegv') +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=('4c86ab71cff57a592944303b11d9bb6ec34f1cbd') + +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 +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + make check-all +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make -j1 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/testing/asymptote/texlive.install b/testing/asymptote/texlive.install new file mode 100644 index 000000000..a7e61f209 --- /dev/null +++ b/testing/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 +} |