Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=4618d6aadab8c26630fc43172c6c9c6e08955741
commit 4618d6aadab8c26630fc43172c6c9c6e08955741 Author: kikadf <[email protected]> Date: Fri Mar 23 17:47:39 2012 +0000 bcpkix-147-1-i686 * New package diff --git a/source/devel-extra/bcpkix/FrugalBuild b/source/devel-extra/bcpkix/FrugalBuild new file mode 100644 index 0000000..af34c6d --- /dev/null +++ b/source/devel-extra/bcpkix/FrugalBuild @@ -0,0 +1,33 @@ +# Compiling Time: 0.17 SBU +# Maintainer: bouleetbil <[email protected]> +# Contributor: kikadf <[email protected]> + +pkgname=bcpkix +_F_archive_name="$pkgname-jdk15on" +pkgver=147 +pkgrel=1 +pkgdesc="Java cryptography APIs." +url="http://www.bouncycastle.org/java.html" +Finclude java +depends=(${depends[@]} 'bcprov>=147' 'junit') +replaces=('bctsp') +groups=('devel-extra') +archs=('i686' 'x86_64') +up2date="lynx -dump http://www.bouncycastle.org/latest_releases.html | Flasttar" +source=(http://downloads.bouncycastle.org/java/$_F_archive_name-$pkgver.tar.gz build.xml) +sha1sums=('913828c7ae36e030508e97e07b3c213fb1db1e9c' \ + '9db4bf71cf4214351b54ed77442296619cf71fd0') + +build() { + Fcd + mkdir -p src || Fdie + Fextract src.zip + mv org src/ || Fdie + #build + cp $Fsrcdir/build.xml build.xml || Fdie + antflags="-Dproject.name=${pkgname} jar" + Fant ${antflags} + #install + Fjar dist/${pkgname}.jar +} + diff --git a/source/devel-extra/bcpkix/build.xml b/source/devel-extra/bcpkix/build.xml new file mode 100644 index 0000000..3ec1d26 --- /dev/null +++ b/source/devel-extra/bcpkix/build.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--- + notes: Call using the following: Fant -Dpackage.name=${package name} +--> +<project name="Frugalware" default="jar" basedir="."> + <property name="src" value="src"/> + <property name="build" value="build"/> + <property name="dist" value="dist"/> + + <property name="pkg" value="${package.name}"/> + <property name="jar" value="${project.name}.jar"/> + + <!-- Override any defined properties --> + <property file="build.properties"/> + + <target name="init"> + <tstamp/> + <mkdir dir="${build}"/> + <mkdir dir="${dist}"/> + <mkdir dir="${dist}/doc"/> + </target> + + <target name="compile" depends="init"> + <javac srcdir="${src}" destdir="${build}" classpath="${classpath}"/> + </target> + + <target name="manifest" depends="init"> + <manifest file="${build}/MANIFEST.MF" mode="update"> + <attribute name="Built-By" value="Frugalware"/> + </manifest> + </target> + + <target name="jar" depends="compile,manifest"> + <jar jarfile="${dist}/${jar}" manifest="${build}/MANIFEST.MF"> + <fileset dir="${build}"/> + </jar> + </target> + + <target name="javadoc" depends="compile"> + <javadoc sourcepath="${src}" destdir="${dist}/doc" packagenames="${pkg}"/> + </target> + + <target name="clean"> + <delete dir="${build}"/> + <delete dir="${dist}"/> + </target> +</project> _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
