blob: a29f6ff709830a01acc744c9b2265d2a6e736ac3 (
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
|
# Contributor: Andrew Sun <adsun701 at gmail dot com>
# Contributor: craven at gmx dot net
# Contributor: realitygaps AT yahoo DOT com
pkgname=xstream
pkgver=1.4.16
pkgrel=1
pkgdesc="Simple java library to serialize objects to XML and back again."
arch=('any')
url="https://x-stream.github.io/"
license=('BSD')
depends=('java-environment=8')
makedepends=('maven')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/x-stream/xstream/archive/${pkgname^^}_${pkgver//./_}.tar.gz")
sha256sums=('8e4ef39152a36ab30e6b430f801e7d83c361a4d782f060e0979eeb3544cda928')
build() {
cd "${srcdir}/${pkgname}-${pkgname^^}_${pkgver//./_}"
mvn clean package -Dmaven.test.skip=true -Dmaven.repo.local="${srcdir}/${pkgname}-${pkgname^^}_${pkgver//./_}" -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
}
package() {
mkdir -p ${pkgdir}/usr/share/java/${pkgname}/lib
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 ../xstream/target/dependencies/*.jar ; do
install -m644 ${i} ${pkgdir}/usr/share/java/${pkgname}/lib
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
}
|