PKGBUILDs/community/classpath/PKGBUILD

88 lines
2.9 KiB
Bash
Raw Normal View History

2015-07-25 16:46:26 +00:00
# $Id$
2018-09-09 15:48:46 +00:00
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: tardo <tardo@nagi-fanboi.net>
2015-07-25 16:46:26 +00:00
# Contributor: Sean Gillespie <Sean.D.Gillespie@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - AArch64 patch
pkgname=classpath
pkgver=0.99
2018-09-09 15:48:46 +00:00
pkgrel=4
2015-07-25 16:46:26 +00:00
pkgdesc="A free replacement for Sun's proprietary core Java class libraries."
2018-09-09 15:48:46 +00:00
arch=('x86_64')
2015-07-25 16:46:26 +00:00
url="http://www.gnu.org/software/classpath/"
license=('GPL')
2018-09-09 15:48:46 +00:00
depends=('file' 'gtk2' 'libsm' 'libxtst')
makedepends=('java-environment' 'antlr2')
options=('!emptydirs')
2016-04-05 18:08:54 +00:00
source=(ftp://ftp.gnu.org/gnu/classpath/$pkgname-$pkgver.tar.gz
freetype2_include.patch
2015-07-25 16:46:26 +00:00
aarch64.patch)
md5sums=('0ae1571249172acd82488724a3b8acb4'
'55dafc301c5f2e497696d01e9c1dab9c'
'5a5548d07da9155b1172e04ef65952e5')
prepare() {
2018-09-09 15:48:46 +00:00
cd "$srcdir"/$pkgname-$pkgver
2016-04-06 17:52:57 +00:00
patch -p0 Makefile.in <<EOF
298,299c298,299
< SUBDIRS = lib doc external include native resource scripts \$(TOOLSDIR) \$(EXAMPLESDIR)
< DIST_SUBDIRS = lib doc external include native resource scripts tools examples
---
> SUBDIRS = lib doc external include native resource scripts
> DIST_SUBDIRS = lib doc external include native resource scripts
EOF
# fix freetype2 include path
2018-09-09 15:48:46 +00:00
patch -Np1 -i "$srcdir"/freetype2_include.patch
# fix build
sed -i 's/-source 1\.5 -target 1\.5/-source 1.6 -target 1.6/' configure m4/ac_prog_javac_works.m4 {examples,tools,lib}/Makefile.{am,in}
2015-07-25 16:46:26 +00:00
# add AArch64 support
patch -p1 -i ../aarch64.patch
}
build() {
2018-09-09 15:48:46 +00:00
cd "$srcdir"/$pkgname-$pkgver
./configure --prefix=/usr --disable-Werror --disable-plugin --disable-gconf-peer \
2015-07-25 16:46:26 +00:00
--with-antlr-jar=/usr/share/java/antlr2.jar
make EXAMPLESDIR=
}
package() {
2018-09-09 15:48:46 +00:00
cd "$srcdir"/$pkgname-$pkgver
make EXAMPLESDIR= DESTDIR="$pkgdir" install
2016-04-06 17:52:57 +00:00
2018-09-09 15:48:46 +00:00
rm -f "$pkgdir"/usr/bin/gappletviewer
rm -f "$pkgdir"/usr/bin/gjar
rm -f "$pkgdir"/usr/bin/gjarsigner
rm -f "$pkgdir"/usr/bin/gjavah
rm -f "$pkgdir"/usr/bin/gkeytool
rm -f "$pkgdir"/usr/bin/gnative2ascii
rm -f "$pkgdir"/usr/bin/gorbd
rm -f "$pkgdir"/usr/bin/grmic
rm -f "$pkgdir"/usr/bin/grmid
rm -f "$pkgdir"/usr/bin/grmiregistry
rm -f "$pkgdir"/usr/bin/gserialver
rm -f "$pkgdir"/usr/bin/gtnameserv
rm -f "$pkgdir"/usr/lib/logging.properties
rm -f "$pkgdir"/usr/lib/security/classpath.security
rm -f "$pkgdir"/usr/share/man/man1/gappletviewer.1*
rm -f "$pkgdir"/usr/share/man/man1/gcjh.1*
rm -f "$pkgdir"/usr/share/man/man1/gjar.1*
rm -f "$pkgdir"/usr/share/man/man1/gjarsigner.1*
rm -f "$pkgdir"/usr/share/man/man1/gjavah.1*
rm -f "$pkgdir"/usr/share/man/man1/gkeytool.1*
rm -f "$pkgdir"/usr/share/man/man1/gnative2ascii.1*
rm -f "$pkgdir"/usr/share/man/man1/gorbd.1*
rm -f "$pkgdir"/usr/share/man/man1/grmid.1*
rm -f "$pkgdir"/usr/share/man/man1/grmiregistry.1*
rm -f "$pkgdir"/usr/share/man/man1/gserialver.1*
rm -f "$pkgdir"/usr/share/man/man1/gtnameserv.1*
rm -f "$pkgdir"/usr/share/man/man1/gjdoc.1*
rm -f "$pkgdir"/usr/share/info/dir
2015-07-25 16:46:26 +00:00
}