Skip to content

Instantly share code, notes, and snippets.

@KenjiTakahashi
Created May 22, 2012 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KenjiTakahashi/2766491 to your computer and use it in GitHub Desktop.
Save KenjiTakahashi/2766491 to your computer and use it in GitHub Desktop.
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Timm Preetz <timm@preetz.us>
pkgname=java-gnome
pkgver=4.1.1
pkgrel=3
pkgdesc="Java bindings to the GNOME platform (including gtk, glib and glade)"
arch=('i686' 'x86_64')
url="http://java-gnome.sourceforge.net"
license=('GPL')
depends=('java-runtime' 'gtksourceview3' 'librsvg' 'libunique3' 'libnotify' 'enchant')
makedepends=('java-environment' 'junit' 'python2')
source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/4.1/$pkgname-$pkgver.tar.xz
fix-build.patch)
sha256sums=('b013020d3da99740bae17e60f29b94c1d999183128612eac1f19a4570b045db2'
'4517eb34d9d7bf00806ffcefcae3e41eafca0fc08c3c7e3162668d09463fc761')
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -Np0 -i "$srcdir/fix-build.patch"
#python2
sed -i 's@^#!.*python$@#!/usr/bin/python2@' build/faster src/util/demux/demux.py
# adapt to the new build-system
unset CLASSPATH
if [ -d "$J2SDKDIR" ]; then
./configure jdk=$J2SDKDIR prefix=/usr
else
./configure
fi
make
DISPLAY= make doc
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make -j1 DESTDIR=$pkgdir install
install -d "$pkgdir/usr/share/gtk-doc/html/$pkgname"
cp -R "$srcdir"/$pkgname-$pkgver/doc/api/* "$pkgdir/usr/share/gtk-doc/html/$pkgname"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment