summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1302e28f2c8aa6cca8d0eee154225b7d3bfc6f48 (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
# Maintainer: eolianoe <eolianoe At GoogleMAIL DoT com>
pkgname='java-freehep-vectorgraphics'
_pkgname='vectorgraphics'
pkgver='2.1.1'
pkgrel=2
pkgdesc='A Image and Vector Graphics package which enables Java programs to generate image and vector graphics in a variety of formats'
depends=('java-runtime')
arch=('i686' 'x86_64')
license=('LGPL2.1')
url='http://java.freehep.org/vectorgraphics/'
source=(ftp://ftp.slac.stanford.edu/software/freehep/VectorGraphics/v${pkgver}/${_pkgname}-${pkgver}-bin.tar.gz)
sha256sums=('f507586f3834258564e43759c1ef72c7abf1648e89f07ef4b2e4cbdcb6fed587')

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  install -Dm644 "LICENSE.txt" \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"

  cd lib
  for file in `find . -maxdepth 1 -regex ".*\.jar" | xargs`; do
    install -Dm644 "${file}" \
      "${pkgdir}/usr/share/java/${_pkgname}/${file}"
  done
}