summaryrefslogtreecommitdiff
path: root/pcr/jdee-svn/PKGBUILD
blob: cadfc9babd8902662e46847a8c701723368bbd6e (plain)
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
# Contributor (Arch): Brandon Ednes <brandon@as220.org>
# Contributor (Arch): Stefan Husmann <stefan-husmann@t-online.de>
# Maintainer : Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=jdee-svn
pkgver=300
_pkgver=2.4.2
pkgrel=1
pkgdesc="Java Development Environment for Emacs"
arch=('any')
url="http://jdee.sourceforge.net/"
license=('GPL')
depends=('emacs-elib' 'java-environment')
makedepends=('subversion' 'apache-ant-contrib=1.0b3')
provides=('jdee')
conflicts=('jdee')
source=("svn+https://jdee.svn.sourceforge.net/svnroot/jdee/trunk/jdee")
md5sums=('SKIP')
_svnmod="jdee"

pkgver() {
  cd "$srcdir/${_svnmod}"
  local ver="$(svnversion)"
  printf "%s" "${ver//[[:alpha:]]}"
}

build() {
  cd $srcdir/${_svnmod}
  export CLASSPATH=$CLASSPATH:/usr/share/java/apache-ant/ant-contrib-1.0b3.jar
  ant clean-all
  ant configure
  ant bindist
}

package() {
  cd $srcdir/${_svnmod}/dist/jdee-${_pkgver}
  install -d $pkgdir/usr/share/java/jdee/{lisp,java/lib}
  cp -r java/lib/ $pkgdir/usr/share/java/jdee/java/
  cp -r lisp/ $pkgdir/usr/share/java/jdee/
}