summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authora.kudelin2019-12-15 21:56:42 +0300
committera.kudelin2019-12-15 21:56:42 +0300
commita00e0dc3051a9077c6b89d18c3198b6c367f39ca (patch)
tree397c9ab590d7f6cd21c5b7f0618dca314ae47eed
parent5ad1544d74400dae13ef74c58acbfa28c960872a (diff)
downloadaur-a00e0dc3051a9077c6b89d18c3198b6c367f39ca.tar.gz
Reworked, updated
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD47
2 files changed, 35 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 976ac03439c..f8d54af9b17 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = java-freehep-vectorgraphics
- pkgdesc = A Image and Vector Graphics package which enables Java programs to generate image and vector graphics in a variety of formats
- pkgver = 2.1.1
- pkgrel = 2
- url = http://java.freehep.org/vectorgraphics/
- arch = i686
+ pkgdesc = A vector graphics package
+ pkgver = 2.4
+ pkgrel = 1
+ url = https://freehep.github.io
arch = x86_64
license = LGPL2.1
+ makedepends = maven
depends = java-runtime
- source = ftp://ftp.slac.stanford.edu/software/freehep/VectorGraphics/v2.1.1/vectorgraphics-2.1.1-bin.tar.gz
- sha256sums = f507586f3834258564e43759c1ef72c7abf1648e89f07ef4b2e4cbdcb6fed587
+ source = https://codeload.github.com/freehep/freehep-vectorgraphics/tar.gz/freehep-vectorgraphics-2.4
+ sha256sums = ec24182331283c3b81393c446cbd743a95e24901809dc755a930956798468dee
pkgname = java-freehep-vectorgraphics
diff --git a/PKGBUILD b/PKGBUILD
index 1302e28f2c8..2a71c62603c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,34 @@
-# 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')
+# Maintainer: Anton Kudelin <kudelin at protonmail dot com>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+
+_pkgname=freehep-vectorgraphics
+pkgname=java-$_pkgname
+pkgver=2.4
+pkgrel=1
+pkgdesc='A vector graphics package'
+arch=('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')
+depends=('java-runtime')
+makedepends=('maven')
+url="https://freehep.github.io"
+source=("https://codeload.github.com/freehep/$_pkgname/tar.gz/$_pkgname-$pkgver")
+sha256sums=('ec24182331283c3b81393c446cbd743a95e24901809dc755a930956798468dee')
-package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+prepare() {
+ find $srcdir/$_pkgname-$_pkgname-$pkgver -name "pom.xml" \
+ -exec sed -i "s/2.3.1-SNAPSHOT/2.4/g" {} +
+}
- install -Dm644 "LICENSE.txt" \
- "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+build() {
+ cd $srcdir/$_pkgname-$_pkgname-$pkgver
+ mvn -DskipTests=true clean package
+}
- cd lib
- for file in `find . -maxdepth 1 -regex ".*\.jar" | xargs`; do
- install -Dm644 "${file}" \
- "${pkgdir}/usr/share/java/${_pkgname}/${file}"
+package() {
+ install -dm755 $pkgdir/usr/share/java
+ cd $srcdir/$_pkgname-$_pkgname-$pkgver
+ for file in `find . -maxdepth 3 -name "freehep*.jar" | xargs`; do
+ install -Dm644 ${file} \
+ $pkgdir/usr/share/java/$( echo $file | sed "s@/target@@g" )
done
}