aboutsummaryrefslogtreecommitdiffstats
path: root/testing/octave/APKBUILD
blob: ac17a29931e4547ed8f0206b994a2bf85e21dd88 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer:
pkgname=octave
pkgver=4.0.3
pkgrel=1
pkgdesc="A high-level language, primarily intended for numerical computations"
url="https://www.gnu.org/software/octave/"
arch="all"
license="GPL3"
depends=""
subpackages="$pkgname-doc"
makedepends="autoconf automake bison curl fftw-dev fltk-dev fontconfig-dev
	freetype-dev gfortran glu-dev gnuplot imagemagick-dev hdf5-dev
	lapack-dev libsm-dev libltdl lcms2-dev pcre-dev perl pkgconf qt-dev
	readline-dev texinfo zlib-dev"
source="ftp://ftp.gnu.org/gnu/octave/$pkgname-$pkgver.tar.xz
	less-docs.patch
	libinterp-deps.patch
	abs.patch
	gnulib.patch"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare || return 1

	cd "$builddir"
	find -name \*.cc -o -name \*.h -o -name \*.yy | xargs sed -i -e 's/#include <c\(math\|stdlib\)>/#include <\1.h>/'
	find -name \*.h -o -name \*.cc | xargs sed -i -e 's/<config.h>/"config.h"/' -e 's/<base-list.h>/"base-list.h"/'
}

build() {
	cd "$builddir"
	./configure \
                --build=$CBUILD \
                --host=$CHOST \
                --prefix=/usr \
                --sysconfdir=/etc \
		--infodir=/usr/share/info \
                --mandir=/usr/share/man \
                --localstatedir=/var \
		--enable-shared \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	make DESTDIR="$pkgdir/" \
		-C "$builddir" install || return 1
	rm -rf "$pkgdir"/usr/lib/charset.alias
}

md5sums="73b140bc69ac21cfaa3e473b91b6842b  octave-4.0.3.tar.xz
79635f1a1a0fd1b583a4a01555cc40e8  less-docs.patch
a9e3611f8526c609751dae3c35afaa8c  libinterp-deps.patch
e08fd7a3d035fde524dd92ed0603ce57  abs.patch
e22f7385ef92fab75191c8925455c097  gnulib.patch"
sha256sums="dc2bec8c68fa5733a5847563634b1729356a84f3a5071008ecdb793293f0aa85  octave-4.0.3.tar.xz
2f6c87158b73c2d5881d3f5ae5b4e6811398b8868ae9ba9b202631f4b0588296  less-docs.patch
1cbfb7648783a9320a7a03f0f391074af5d1318bef796ddffd2d9cbacc685d22  libinterp-deps.patch
28ac40c2e4dbafac313f34a68560da42027815b08a880d44c61f97d9c660ce04  abs.patch
75562bd81b6cb44e9e5bacf8b1ba556df565001f9dea7960a4346073ed997c33  gnulib.patch"
sha512sums="bad009235b04be09c051dd27ebef7df2542adec0a0b57c070662deebe33a0cdceb7d6816653f5afc3fc0cc1287ba1ca1a5c50858169004210224039374c9c55d  octave-4.0.3.tar.xz
d1f1e4c475cbeeac805c5ffefe19e1a65185259dfc55dabc5debc57b184de3573065c3879295ec42101ac3c7a57798c56330793eef84ae361c09e61ed3dc0f0c  less-docs.patch
5ae08ddcdea63804154f5ba3808369558f717fd696f1a4ee7dccfd96c52cdb8afc85a564522d5b0cdc83c1f0a7f5ef8d509a293af2d227c8f0fe188420349733  libinterp-deps.patch
52ff16908f5ffb736dfb442bf1950b7595d8999464bbcb8265b754b8a3bdfe4f18fe5194bd4ec8606219d0e70fc82d60429e8c3c4aa33b8eb1fe54c2c5490ca2  abs.patch
50d9a7cefc0d39b666b646abe26148d7640ed2c4505244e3b5d4ba4348f80fc5d0d08465a575682fcae88d245bf72e7ba13df580003a2c5de6b7b222131a5392  gnulib.patch"