blob: 2fcb033e2c16f98582956778eced6c0425e12fae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: Julian Weigt <juw@posteo.de>
# Maintainer: Julian Weigt <juw@posteo.de>
pkgname=asymptote
pkgver=2.70
pkgrel=0
pkgdesc="A vector graphics language for technical drawing"
url="http://asymptote.sourceforge.net/"
arch="all !mips64 !s390x" #blocked by texlive
license="GPL-3.0-only"
depends="texlive texlive-dvi ghostscript"
### Optional dependencies
# gsl and gsl-dev for the support of certain special functions.
# fftw for fourier transform of data
# numpy pyqt5 cson and librsvg for GUI program xasy. I could not find cson for alpine though.
# freeglut for openGL support
makedepends="zlib-dev texinfo autoconf"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/sourceforge/asymptote/asymptote-$pkgver.src.tgz"
prepare() {
default_prepare
./autogen.sh
}
build() {
# Without specifying, the content of texmf goes to /texmf-dist in root dir
# Build hangs without --disable-gc
./configure \
--prefix=/usr \
--with-latex=/usr/share/texmf/tex/latex \
--with-context=/usr/share/texmf/tex/context \
--disable-gc
make asy
#-j1 is needed for building documentation with pdflatex due to probably race conditions
make -j1 all
}
check() {
### Other option:
#make check-all. Fails without gsl and gsl-dev.
make check
}
package() {
### Other options
#make install doesn't install html documentation
make -j1 DESTDIR="$pkgdir" install-all
}
sha512sums="24d60af361e3f0309a896ce8163da6fc0a9d6587efe726c5acf874dcb74f4d51b4bad8146a615ff54173ef06dac53117fd1cc09c77940271adc9f64cac6bcfe6 asymptote-2.70.src.tgz"
|