54 lines
1.6 KiB
Bash
54 lines
1.6 KiB
Bash
# Template file for 'sacjava'
|
|
pkgname=sacjava
|
|
version=1.3
|
|
revision=1
|
|
hostmakedepends="openjdk8 apache-maven"
|
|
depends="virtual?java-runtime"
|
|
short_desc="Simple API for CSS Java library"
|
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
|
license="W3C-19980720"
|
|
homepage="https://www.w3.org/Style/CSS/SAC/"
|
|
#distfiles="https://dev-www.libreoffice.org/src/39bb3fcea1514f1369fcfc87542390fd-sacjava-${version}.zip"
|
|
#checksum=085f2112c51fa8c1783fac12fbd452650596415121348393bb51f0f7e85a9045
|
|
distfiles="https://www.w3.org/2002/06/sacjava-1.3.zip"
|
|
checksum=a228cae0e4c0cbefc7087cd1e17c0e8f91ee648949c6f0b9854c22f7ad1557b6
|
|
|
|
do_configure() {
|
|
cat >pom.xml <<-EOF
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>org.w3c.css</groupId>
|
|
<artifactId>sac</artifactId>
|
|
<version>${version}</version>
|
|
<packaging>jar</packaging>
|
|
<name>Simple API for CSS</name>
|
|
<description>SAC is a standard interface for CSS parsers.</description>
|
|
<url>http://www.w3.org/Style/CSS/SAC/</url>
|
|
<organization>
|
|
<name>World Wide Web Consortium</name>
|
|
<url>http://www.w3.org/</url>
|
|
</organization>
|
|
<licenses>
|
|
<license>
|
|
<name>The W3C Software License</name>
|
|
<url>http://www.w3.org/Consortium/Legal/copyright-software-19980720</url>
|
|
</license>
|
|
</licenses>
|
|
<build>
|
|
<sourceDirectory>.</sourceDirectory>
|
|
</build>
|
|
</project>
|
|
EOF
|
|
rm -f sac.jar
|
|
}
|
|
|
|
do_build() {
|
|
mvn package
|
|
}
|
|
|
|
do_install() {
|
|
vinstall "target/sac-${version}.jar" 644 usr/share/java
|
|
ln -s "sac-${version}.jar" "$DESTDIR/usr/share/java/sac.jar"
|
|
vlicense COPYRIGHT.html
|
|
}
|