summaryrefslogtreecommitdiff
path: root/pcr/java-gson
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-11-03 11:56:39 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-11-03 11:56:39 -0500
commit80914d7c8e9027fefd7f1ba63cd792abb1bf1b62 (patch)
treec4568ca34f864dbd001268df2af97cfb03d61e33 /pcr/java-gson
parentb77b60c9469164ee98d62a721c0ab2b6ebb6fedf (diff)
java-gson-2.8.0-1: updating version
Diffstat (limited to 'pcr/java-gson')
-rw-r--r--pcr/java-gson/PKGBUILD43
1 files changed, 19 insertions, 24 deletions
diff --git a/pcr/java-gson/PKGBUILD b/pcr/java-gson/PKGBUILD
index 3e37ce29e..719b2838c 100644
--- a/pcr/java-gson/PKGBUILD
+++ b/pcr/java-gson/PKGBUILD
@@ -2,53 +2,48 @@
_libname=gson
pkgname=java-${_libname}
-pkgver=2.6.2
+pkgver=2.8.0
pkgrel=1
pkgdesc="Java library to convert Java Objects into JSON and back"
arch=('any')
-url="http://code.google.com/p/google-gson/"
+url='https://github.com/google/gson'
license=('APACHE')
depends=('java-runtime')
makedepends=('java-environment' 'jh')
conflicts=('google-gson')
replaces=('google-gson')
-source=("https://github.com/google/${_libname}/archive/${_libname}-parent-${pkgver}.tar.gz")
-sha256sums=('b33ca70ee634a17e9b95651ea76cf5b0d9c1b5fb6e227a5a1d763513dcfd6d6d')
+source=("https://github.com/google/${_libname}/archive/${_libname}-parent-$pkgver.tar.gz")
+sha256sums=('ea1d641fb1a19d243c37f5c1e5e2e23c32f9fbfc1ec5f95af9933d685e5057da')
prepare() {
- cd "${srcdir}/${_libname}-${_libname}-parent-${pkgver}/${_libname}"
+ cd "$srcdir/${_libname}-${_libname}-parent-$pkgver/${_libname}"
mkdir -p build/classes
}
build() {
- cd "${srcdir}/${_libname}-${_libname}-parent-${pkgver}/${_libname}"
+ cd "$srcdir/${_libname}-${_libname}-parent-$pkgver/${_libname}"
- javac -d "build/classes" \
- $(find "src/main/java" -name \*.java)
+ javac -d build/classes $(find src/main/java -name \*.java)
+ javadoc -d build/javadoc -sourcepath src/main/java -subpackages com
- javadoc -d "build/javadoc" \
- -sourcepath "src/main/java" -subpackages com
-
- jar -cvf "${_libname}.jar" -C "build/classes" .
+ jar -cvf "${_libname}.jar" -C build/classes .
}
package() {
- cd "${srcdir}/${_libname}-${_libname}-parent-${pkgver}/${_libname}"
+ cd "$srcdir/${_libname}-${_libname}-parent-$pkgver/${_libname}"
# Install license file
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
# Install documentation
- install -d "${pkgdir}/usr/share/doc/${pkgname}"
- cp -r "build/javadoc" "${pkgdir}/usr/share/doc/${pkgname}"
+ install -d "$pkgdir/usr/share/doc/$pkgname"
+ cp -r build/javadoc "$pkgdir/usr/share/doc/$pkgname"
# Install Maven artifacts
- export DESTDIR=${pkgdir}
- jh mvn-install "com.google.code.${_libname}" ${_libname} ${pkgver} \
- pom.xml \
- "${_libname}.jar" \
- "${_libname}-${pkgver}.jar"
-
- ln -s "/usr/share/java/${_libname}-${pkgver}.jar" \
- "${pkgdir}/usr/share/java/${_libname}.jar"
+ export DESTDIR=$pkgdir
+ jh mvn-install "com.google.code.${_libname}" ${_libname} $pkgver \
+ pom.xml "${_libname}.jar" "${_libname}.jar"
+
+ ln -s "/usr/share/java/${_libname}.jar" \
+ "$pkgdir/usr/share/java/${_libname}-$pkgver.jar"
}