[arch-commits] Commit in java-xerces2/trunk (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Sat Aug 2 14:41:53 UTC 2008
Date: Saturday, August 2, 2008 @ 10:41:52
Author: jgc
Revision: 7488
Rename package, follow $pkgname-java scheme instead of the other way around
Do not depend on java-runtime. Even with a java runtime, this binary is useless without something that calls it. Saves us dependency loops.
Modified:
java-xerces2/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2008-08-02 14:39:14 UTC (rev 7487)
+++ PKGBUILD 2008-08-02 14:41:52 UTC (rev 7488)
@@ -1,19 +1,22 @@
# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
-pkgname=java-xerces2
+pkgname=xerces2-java
pkgver=2.9.1
-pkgrel=1
+pkgrel=2
pkgdesc="High performance fully compliant Java XML parser"
arch=('i686' 'x86_64')
url="http://xml.apache.org/xerces2-j"
-license="Apache"
-depends=('java-runtime')
-source=(http://www.apache.org/dist/xml/xerces-j/Xerces-J-bin.$pkgver.tar.gz)
+license=('APACHE')
+provides=("java-xerces2=${pkgver}")
+conflicts=('java-xerces2')
+replaces=('java-xerces2')
+source=(http://www.apache.org/dist/xml/xerces-j/Xerces-J-bin.${pkgver}.tar.gz)
md5sums=('32718d4cbe009f93d551ab8d3ef4b2aa')
build() {
- mkdir -p $startdir/pkg/usr/share/java/xerces2
- cd $startdir/src/xerces-2_9_1
- rm xercesSamples.jar
- cp *.jar $startdir/pkg/usr/share/java/xerces2
+ cd $startdir/src/xerces-${pkgver//./_}
+ install -m755 -d ${pkgdir}/usr/share/java
+ rm -f xercesSamples.jar
+ install -m644 *.jar ${pkgdir}/usr/share/java/ || return 1
}
More information about the arch-commits
mailing list