APKBUILD 1.58 KB
Newer Older
Daniel Sabogal's avatar
Daniel Sabogal committed
1 2 3
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer:
pkgname=octave
4 5
pkgver=5.1.0
pkgrel=0
Daniel Sabogal's avatar
Daniel Sabogal committed
6 7
pkgdesc="A high-level language, primarily intended for numerical computations"
url="https://www.gnu.org/software/octave/"
8
arch="all !x86 !ppc64le" # Tex dependencies aren't available for x86
9
license="GPL-3.0-or-later"
Daniel Sabogal's avatar
Daniel Sabogal committed
10
subpackages="$pkgname-doc"
11
makedepends="autoconf automake libtool bison curl fftw-dev fltk-dev fontconfig-dev
Daniel Sabogal's avatar
Daniel Sabogal committed
12
	freetype-dev gfortran glu-dev gnuplot imagemagick-dev hdf5-dev
13 14
	lapack-dev libsm-dev libltdl lcms2-dev pcre-dev perl pkgconf qt5-qtbase-dev
	readline-dev texinfo zlib-dev texlive texlive-dvi"
15
source="ftp://ftp.gnu.org/gnu/octave/$pkgname-$pkgver.tar.gz
Daniel Sabogal's avatar
Daniel Sabogal committed
16 17
	libinterp-deps.patch
	abs.patch
18 19
	"
options="!check" # No test suite
Daniel Sabogal's avatar
Daniel Sabogal committed
20 21

prepare() {
22
	default_prepare
Daniel Sabogal's avatar
Daniel Sabogal committed
23

24
	autoreconf -vif
Daniel Sabogal's avatar
Daniel Sabogal committed
25 26 27 28
}

build() {
	./configure \
29 30 31 32
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
Daniel Sabogal's avatar
Daniel Sabogal committed
33
		--infodir=/usr/share/info \
34 35
		--mandir=/usr/share/man \
		--localstatedir=/var \
Daniel Sabogal's avatar
Daniel Sabogal committed
36 37
		--enable-shared \
		--disable-static \
38 39
		--with-qt
	make
Daniel Sabogal's avatar
Daniel Sabogal committed
40 41 42 43
}

package() {
	make DESTDIR="$pkgdir/" \
44
		-C "$builddir" install
Daniel Sabogal's avatar
Daniel Sabogal committed
45 46 47
	rm -rf "$pkgdir"/usr/lib/charset.alias
}

48
sha512sums="a842fb50c13f25e9d425fe9a2c71d9433d7e125747d2175efe0c9b2a780c799d9ce1ee085b5a13fbfedb7990b0ba5d11079d880ddb3bdb66782efc321390eebb  octave-5.1.0.tar.gz
49
093b13ad457e290d746908a5de1855071b2cd27b4c08101826d32fcf63398e863c3b72bb81f19255a04a880a2bf49e3ced1141bf7d0044db1328c6f2c9492f66  libinterp-deps.patch
50
bcd111f35baf2681da2b1ad1edbe956ee359c5fb0114797b27747fa78e6f118406bb7fb325c1fa03c18e29815d2d4b8d9a28faf72c1fbbec526e8fbaed0cb820  abs.patch"