1 # PKGBUILD for JDEE 2.4.0.1
2 # Contributor: Brandon Ednes <brandon@as220.org>
8 pkgdesc="The Java Development Environment for Emacs"
10 url="http://jdee.sourceforge.net/"
12 depends=('emacs' 'cedet' 'emacs-elib')
17 install="$pkgname.install"
18 source=(http://downloads.sourceforge.net/project/jdee/jdee/2.4.0.1/jdee-bin-2.4.0.1.zip)
19 md5sums=('8e1d3e764f01c6dc1e337f9c6882ec85')
22 cd $startdir/src/$pkgname-$pkgver
23 mkdir -p $startdir/pkg/usr/share/emacs/site-lisp/$_pkgname
25 # Fix up permissions for package files. This is nice but not required.
26 find . -type f | xargs chmod 644
28 # Because of the way JDEE builds, it assumes the jde directory has its
29 # dependencies in sibling directories. We set up some symlinks to fake
31 ln -sf /usr/share/emacs/site-lisp/elib ../elib
32 ln -sf /usr/share/emacs/site-lisp/cedet ../cedet
33 # Byte-compile everything.
34 emacs -q --no-site-file -batch -l $startdir/jdee-build.el -f jde-compile-jde
36 # There is no install per se, just copy everything into the pkg directory.
37 cp -R $startdir/src/$pkgname-$pkgver/* \
38 $startdir/pkg/usr/share/emacs/site-lisp/$_pkgname
40 # Clean up the symlinks.