summaryrefslogtreecommitdiff
path: root/bootstrap/classpath-0.99-r1/APKBUILD
blob: 6090d2c952d8341852bc0476e851c3761a6a1dfd (plain) (blame)
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
# Maintainer: Horst Burkhardt <horst@adelielinux.org>
pkgname=classpath
pkgver=0.99
pkgrel=2
pkgdesc="GNU Classpath Java Class Library"
url="https://www.gnu.org/software/classpath/"
arch="all"
options="!check" #No test suite provided.
license="GPL-2.0-with-classpath-exception"
depends=""
makedepends="zlib-dev fastjar zip jikes libltdl ecj=3.2-r0"
subpackages="$pkgname-dev $pkgname-doc"
source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz 
        add-aarch64-endianness.patch" 

build() {
	export JAVAC="/usr/bin/ecj-3.2"
	export JAVACFLAGS="-nowarn"
	export gjl_java_args="-Xmx768M"
	export CLASSPATH="/usr/share/classpath/glibj.zip"
	./configure \
		--disable-Werror \
		--disable-gmp \
		--disable-gtk-peer \
		--disable-gconf-peer \
		--disable-plugin \
		--disable-dssi \
		--enable-jni \
		--disable-alsa \
		--disable-dependency-tracking \
		--disable-gjdoc \
		--disable-examples \
		--with-glibj-dir=/usr/lib/classpath-0.99/share/classpath \
		--prefix=/usr/lib/classpath-0.99 \
		--datadir=/usr/lib/classpath-0.99 \
		--datarootdir=/usr/lib/classpath-0.99/share \
		--mandir=/usr/lib/classpath-0.99/share/man \
		--infodir=/usr/lib/classpath-0.99/share/info 
	make DESTDIR="$pkgdir"
	}

package() {
	make DESTDIR="$pkgdir" install
	mv "$pkgdir"/usr/lib/classpath-0.99/share/info "$pkgdir"/usr/lib/classpath-0.99/share
	mv "$pkgdir"/usr/lib/classpath-0.99/share/man "$pkgdir"/usr/lib/classpath-0.99/share
	ln -s "$pkgdir"/usr/lib/classpath-0.99/bin/gjavah "$pkgdir"/usr/bin/gjavah
	  }

sha512sums="d8f38677ecc6a0f4b26197ab16e9888c51043364141675ad69684828e2d0ecb93122249672e2e7997aea817cc4aac68c17ccf59bf8913afe81e9536bee6b73ac  classpath-0.99.tar.gz
d3aeabaa4e7adcacc15d0122a0bd27621e89e2ec58d1af3ace620f7d923676e9d323c27f387790a66fec68db91174f9b14df4697f04ad270820259f749a1ae51  add-aarch64-endianness.patch"