summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2019-05-09 20:01:08 -0400
committerAndrew Sun2019-05-09 20:01:08 -0400
commit9a616994953544a9cae7afee4da02078ecb011eb (patch)
tree7b0a68d54d31596a0c8923ffef7485468bf1aedb
parent7ddadfd45c90d120976ae8a076d1546623caacb5 (diff)
downloadaur-9a616994953544a9cae7afee4da02078ecb011eb.tar.gz
xstream: update to 1.4.11
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD37
2 files changed, 28 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c6cc69c75db..d183a639165 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
pkgbase = xstream
pkgdesc = Simple java library to serialize objects to XML and back again.
- pkgver = 1.4.7
+ pkgver = 1.4.11.1
pkgrel = 1
- url = http://xstream.codehaus.org/index.html
- arch = i686
- arch = x86_64
+ url = https://x-stream.github.io/
+ arch = any
license = BSD
+ makedepends = maven
+ makedepends = unzip
depends = java-environment
- source = https://nexus.codehaus.org/content/repositories/releases/com/thoughtworks/xstream/xstream-distribution/1.4.7/xstream-distribution-1.4.7-bin.zip
- md5sums = ea6a77eb51390c6888f5ca3c3a42d87b
+ source = xstream-1.4.11.1.tar.gz::https://github.com/x-stream/xstream/archive/XSTREAM_1_4_11_1.tar.gz
+ sha256sums = eef0a6663e845960d1816fe020aad19f9da5216f99cd371ea7e13f6829261c8d
pkgname = xstream
diff --git a/PKGBUILD b/PKGBUILD
index facafe4d17b..4271a3ca59d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,31 @@
+# Maintainer: Andrew Sun <adsun701@gmail.com>
# Contributor: craven@gmx.net
-# Maintainer: realitygaps AT yahoo DOT com
+# Contributor: realitygaps AT yahoo DOT com
+
pkgname=xstream
-pkgver=1.4.7
+pkgver=1.4.11.1
pkgrel=1
pkgdesc="Simple java library to serialize objects to XML and back again."
-arch=('i686' 'x86_64')
-url="http://xstream.codehaus.org/index.html"
+arch=('any')
+url="https://x-stream.github.io/"
license=('BSD')
depends=('java-environment')
-source=(https://nexus.codehaus.org/content/repositories/releases/com/thoughtworks/${pkgname}/xstream-distribution/${pkgver}/${pkgname}-distribution-${pkgver}-bin.zip)
-build() {
- mkdir -p ${pkgdir}/usr/share/java/${pkgname}
+makedepends=('maven' 'unzip')
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/x-stream/xstream/archive/${pkgname^^}_${pkgver//./_}.tar.gz")
+sha256sums=('eef0a6663e845960d1816fe020aad19f9da5216f99cd371ea7e13f6829261c8d')
- cd ${srcdir}
- cd ${pkgname}-${pkgver}/lib/
+build() {
+ cd "${srcdir}/${pkgname}-${pkgname^^}_${pkgver//./_}"
+ mvn clean package -Dmaven.test.skip=true -Dmaven.repo.local="${srcdir}/${pkgname}-${pkgname^^}_${pkgver//./_}"
+}
- install -m644 ../LICENSE.txt ${pkgdir}/usr/share/java/${pkgname}
- install -m644 ../README.txt ${pkgdir}/usr/share/java/${pkgname}
+package() {
+ mkdir -p ${pkgdir}/usr/share/java/${pkgname}
+ cd "${srcdir}/${pkgname}-${pkgname^^}_${pkgver//./_}/xstream-distribution"
+ for i in target/libs/*.jar ; do
+ install -m644 ${i} ${pkgdir}/usr/share/java/${pkgname}
+ done
- for i in *.jar ; do
- install -m644 ${i} ${pkgdir}/usr/share/java/${pkgname}
- done
-
+ install -Dm644 ${srcdir}/${pkgname}-${pkgname^^}_${pkgver//./_}/LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt
+ install -Dm644 ${srcdir}/${pkgname}-${pkgname^^}_${pkgver//./_}/README.txt ${pkgdir}/usr/share/doc/${pkgname}/README.txt
}
-md5sums=('ea6a77eb51390c6888f5ca3c3a42d87b')