summaryrefslogtreecommitdiff
path: root/~lukeshu-closure-compiler/java-jarjar/SRCBUILD
blob: b716eeb510b0a3298a8100a378892a5f896fad77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

_pkgname=jarjar
pkgname=java-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}/"
}