summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 851bee34202386131cc61dfc26abe5ed811ecc16 (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
41
42
# Maintainer: Jameson Pugh <imntreal@gmail.com>
# Contributor: Yonathan Dossow <ydossow@archlinux.cl>

pkgname=idm-console-framework
pkgver=1.2.0
pkgrel=1
pkgdesc="A Java Management Console framework used for remote server management."
arch=('x86_64')
url="http://directory.fedoraproject.org"
license=('GPL')
depends=('ldapjdk')
makedepends=('ant' 'java-environment')
source=("https://github.com/dogtagpki/idm-console-framework/archive/v${pkgver}.tar.gz")
sha256sums=('b8b43bd48ffaba6acc1e11db821afdeb62f5a42b7ab3667c16ad2a899846a8a6')

major_version=1.1

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  /usr/bin/ant -Dlib.dir=/usr/lib \
    -Dbuilt.dir=`pwd`/built \
    -Dclassdest=/usr/share/java \
    -Djss.local.location=/usr/share/java \
    -Djss.jar.name=jss.jar
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  install -d $pkgdir/usr/share/java
  install -m644 built/release/jars/idm-console-* $pkgdir/usr/share/java/

  cd ${pkgdir}/usr/share/java
  ln -s idm-console-base-${pkgver}.jar idm-console-base-${major_version}.jar
  ln -s idm-console-mcc-${pkgver}.jar idm-console-mcc-${major_version}.jar
  ln -s idm-console-mcc-${pkgver}_en.jar idm-console-mcc-${major_version}_en.jar
  ln -s idm-console-nmclf-${pkgver}.jar idm-console-nmclf-${major_version}.jar
  ln -s idm-console-nmclf-${pkgver}_en.jar idm-console-nmclf-${major_version}_en.jar
}

# vim:set ts=2 sw=2 et: