1 # Maintainer: Yonathan Dossow <ydossow@archlinux.cl>
2 # Contributor: Yonathan Dossow <ydossow@archlinux.cl>
6 pkgdesc="The Mozilla LDAP SDKs enable you to write applications which access, manage, and update the information stored in an LDAP directory."
8 url="http://www.mozilla.org/directory/javasdk.html"
11 depends=('java-runtime' 'jss')
12 makedepends=('apache-ant' 'java-environment')
20 source=(ldapjdk-jarnamefix.patch)
22 md5sums=() #generate with 'makepkg -g'
25 mkdir -p "$srcdir/$pkgname-$pkgver"
26 cd "$srcdir/$pkgname-$pkgver"
27 cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot export -r LDAPJavaSDK_418 DirectorySDKSourceJava
29 patch -p0 -i $srcdir/ldapjdk-jarnamefix.patch
32 rm -fr $(find . -name CVS -type d)
33 # Link to build-system BRs
35 # ( cd mozilla/directory/java-sdk/ldapjdk/lib && build-jar-repository -s -p . jss4 jsse jaas jndi )
36 ln -s /usr/lib/java/jss4.jar $srcdir/ldapjdk-4.18/mozilla/directory/java-sdk/ldapjdk/lib/jss4.jar
37 cd mozilla/directory/java-sdk
38 # if [ ! -e "$JAVA_HOME" ] ; then export JAVA_HOME="%{_jvmdir}/java" ; fi
42 . /etc/profile.d/apache-ant.sh
47 cd "$srcdir/$pkgname-$pkgver"
48 install -d -m 755 $pkgdir/usr/share/java
49 for a in ldapbeans.jar ldapfilt.jar ldapjdk.jar ldapsp.jar; do
50 install -m 644 mozilla/directory/java-sdk/dist/packages/$a $pkgdir/usr/share/java/${a}
53 # install -d -m 755 $RPM_BUILD_ROOT%{_javadir}-1.3.0
55 # pushd $RPM_BUILD_ROOT%{_javadir}-1.3.0
56 # ln -fs ../java/*%{spname}.jar jndi-ldap.jar
59 # install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
60 # cp -r mozilla/directory/java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
63 # %{_bindir}/aot-compile-rpm
71 # vim:set ts=2 sw=2 et:
72 md5sums=('72d2859b660da7be7213a088d13d4267')