# Maintainer: Horst Burkhardt 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"