diff options
-rw-r--r-- | ~lukeshu-closure-compiler/jarjar/PKGBUILD | 38 | ||||
-rw-r--r-- | ~lukeshu-closure-compiler/jarjar/SRCBUILD | 41 |
2 files changed, 79 insertions, 0 deletions
diff --git a/~lukeshu-closure-compiler/jarjar/PKGBUILD b/~lukeshu-closure-compiler/jarjar/PKGBUILD new file mode 100644 index 000000000..fb3a1ce24 --- /dev/null +++ b/~lukeshu-closure-compiler/jarjar/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=jarjar +pkgver=1.1 +pkgrel=1 +pkgdesc="A utility that makes it easy to repackage Java libraries and embed them into your own distribution." +arch=('any') +url="https://code.google.com/p/jarjar/" +license=('Apache2') +depends=('java-runtime') +makedepends=('apache-ant' 'java-asm' 'maven') +source=("http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}-${pkgrel}-any.src.tar.xz") + +build() { + cd "$srcdir/$pkgname" + + ln -s /usr/share/java/asm/asm-3.3.1.jar lib + ln -s /usr/share/java/asm/asm-commons-3.3.1.jar lib + ln -s /opt/maven/lib/maven-plugin-api-*.jar lib/maven-plugin-api.jar + + # Define the version + sed -i "s/snapshot/$pkgver/" build.xml + + # Fix a bug causing an incompatibility with newer versions of ant + sed -i 's/zipDir(null,/zipDir((java.io.File)null,/' \ + src/main/com/tonicsystems/jarjar/util/AntJarProcessor.java + + ant jar +} + +package() { + cd "$srcdir/$pkgname" + install -d "$pkgdir/usr/share/java/$pkgname" + install -D "dist/$pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$pkgname" + ln -s "$pkgname/$pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$pkgname.jar" +} + +md5sums=('4651ff381bc005c658663111e83a0fce') diff --git a/~lukeshu-closure-compiler/jarjar/SRCBUILD b/~lukeshu-closure-compiler/jarjar/SRCBUILD new file mode 100644 index 000000000..fee8905f5 --- /dev/null +++ b/~lukeshu-closure-compiler/jarjar/SRCBUILD @@ -0,0 +1,41 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=jarjar +pkgver=1.1 +pkgrel=1 +pkgdesc="A utility that makes it easy to repackage Java libraries and embed them into your own distribution." +arch=('any') +url="https://code.google.com/p/jarjar/" +license=('Apache2') +makedepends=('subversion' 'findutils') +options=('!strip' 'docs' '!zipman' 'emptydirs') + +_svntrunk="https://jarjar.googlecode.com/svn/tags/release-$pkgver/$pkgname" +_svnver=131 + +build() { + cd "$srcdir" + msg "Connecting to SVN server...." + + if [[ -d "$pkgname/.svn" ]]; then + (cd "$pkgname" && svn up -r "$_svnver") + else + svn co "$_svntrunk" --config-dir ./ -r "$_svnver" "$pkgname" + fi + + msg "SVN checkout done or server timeout" + + msg "Removing .svn files..." + find . -name .svn -print0 | xargs -0 rm -rf + + msg "Removing precompiled binaries..." + cd "$srcdir/$pkgname" + rm -v src/test/*.class src/test/*.jar + rm -v lib/*.jar +} + +package() { + PKGEXT=${SRCEXT} + PKGDEST=${SRCDEST} + cp -a "${srcdir}/${pkgname}" "${pkgdir}/" +}
\ No newline at end of file |