aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gforth/APKBUILD
blob: c8589b77c232c8e59f3760e2f3778f2967342fa6 (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
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=gforth
pkgver=0.7.3
pkgrel=2
pkgdesc="Fast and portable implementation of the ANS Forth language"
url="http://www.gnu.org/software/gforth/"
arch="all !x86" # build fail on x86
license="GPL-3.0-or-later"
options="!check" # Hangs
makedepends="libffi-dev libtool m4"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/gforth/$pkgname-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	CFLAGS='-std=gnu99' ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--without-check
	make PREFIX=/usr -j1
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f034234acfb0fc727f28b564432219a100b916c6df4b847794a55b2fc3b8ed8714eca6de0df67c7c427b7c2bb4dd00f65cfd34e6eb60181e41ab84fea30304e4  gforth-0.7.3.tar.gz"