summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 51b33a8b78e8cea4575687e3a376a2b7d6f3a7ec (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
# Maintainer:  Marcin (CTRL) Wieczorek <marcin@marcin.co>
# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>

pkgname=java-commons-collections
pkgver=4.4
pkgrel=1
pkgdesc='Implementations of common collections'
arch=('any')
url='http://commons.apache.org/collections/'
license=('APACHE')
depends=(java-runtime)
makedepends=(maven)
source=("http://www.apache.org/dist/commons/collections/source/commons-collections4-${pkgver}-src.tar.gz")
sha512sums=('2110e73eda97ca52a886cb708f21d8609a83655861594f3b6eb7a15b777d42eeeefc5d3b28ffc6ecc5e4f0b3fd5407f80019c2ce006f970f55455ef33eee47ee')

build() {
  cd "${srcdir}/commons-collections4-${pkgver}-src"

  mvn package
}

package() {
  cd "${srcdir}/commons-collections4-${pkgver}-src/"

  install -dm755 "${pkgdir}/usr/share/java/commons-collections/"
  install -D -m644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
  install -m644 "target/commons-collections4-${pkgver}.jar" "${pkgdir}/usr/share/java/commons-collections/commons-collections4.jar"
}