1 # Contributer: N30N <archlinux@alunamation.com>
3 pkgname="css-validator-cvs"
6 pkgdesc="Command line version of the W3C's CSS validator"
7 url="http://jigsaw.w3.org/css-validator/documentation.html"
10 depends=("java-runtime")
11 # makedepends=("cvs" "apache-ant" "tomcat")
12 makedepends=("cvs" "apache-ant")
13 source=("css-validator.sh" \
14 "http://jigsaw.w3.org/Distrib/jigsaw_2.2.6.tar.gz" \
15 "http://www.apache.org/dist/commons/collections/binaries/commons-collections-3.2.1-bin.zip" \
16 "http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.6-bin.zip" \
17 "http://www.apache.org/dist/velocity/engine/1.7/velocity-1.7.tar.gz" \
18 "http://www.apache.org/dist/xerces/j/binaries/Xerces-J-bin.2.11.0.tar.gz" \
19 "http://mirrors.ibiblio.org/pub/mirrors/maven2/jetty/servlet-api/2.5-6.0.0/servlet-api-2.5-6.0.0.jar" \
20 "http://about.validator.nu/htmlparser/htmlparser-1.3.1.zip" \
22 md5sums=("4062f65be015b900ada6d6793c02ff88" \
23 "c848e06d7851ca0d243fd8bdef4c7765" \
24 "23925dbfaf3c266b487c264c1a643b51" \
25 "09c4bd0122f2193f01e2ac898bf1072c" \
26 "6af13ea297dee7ddbabeaa8e3963c184" \
27 "29d731e0ae57eb3f2e09af6594bc2515" \
28 "c27c02fb0a00cc3a7d05ea993a9bf56e" \
29 "dbbc49666b72426e4f79990c88485d61" \
31 noextract=("jigsaw_2.2.6.tar.gz" \
32 "commons-collections-3.2.1-bin.zip" \
33 "commons-lang-2.6-bin.zip" \
34 "velocity-1.7.tar.gz" \
35 "Xerces-J-bin.2.11.0.tar.gz" \
36 "servlet-api-2.5-6.0.0.jar" \
37 "htmlparser-1.3.1.zip" \
39 provides=("css-validator")
42 _cvsroot=":pserver:anonymous:anonymous@dev.w3.org:/sources/public"
43 _cvsmod="2002/css-validator"
47 msg "Connecting to W3C's CVS server......."
48 if [ -d ${_cvsmod}/CVS ]; then
49 (cd ${_cvsmod} && cvs -z3 update -d && ant clean)
51 cvs -z3 -d ${_cvsroot} co -D ${pkgver} -f ${_cvsmod}
56 for file in ${srcdir}/*.{gz,zip,jar}; do
60 msg "Starting build process."
61 # export CLASSPATH=/opt/tomcat/common/lib/servlet-api.jar
64 install -D -m755 ${srcdir}/css-validator.sh ${pkgdir}/usr/bin/css-validator
65 install -D -m644 css-validator.jar \
66 ${pkgdir}/usr/share/java/css-validator/css-validator.jar
67 for file in lib/*.jar; do
68 install -D -m644 ${file} ${pkgdir}/usr/share/java/css-validator/${file}