# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Simon Lipp <sloonz+aur@gmail.com>
# Maintainer: Stefan Husmann < stefan-husmann@t-online.de>

pkgname=java-commons-logging
pkgver=1.3.0
pkgrel=1
pkgdesc="Wrapper interface for logging APIs in Java"
arch=(any)
url="https://commons.apache.org/logging/"
license=(APACHE)
depends=('java-runtime')
source=("http://apache.crihan.fr/dist/commons/logging/binaries/commons-logging-$pkgver-bin.tar.gz"
	"http://apache.crihan.fr/dist/commons/logging/source/commons-logging-$pkgver-src.tar.gz")
sha512sums=('1fb9e4537fc59b75baf83b72a8e484604e6124ff7969b6f82955b29beeb5b86d9d115a494a6687e9a89a0b274f1ae9c226f289a7531334cc0451a3d4d5c2e3dc'
            '20cc40c7d7848da618801a86333f3984151d3089f806e5d7a1e92c83c1f90d330f1c7ded5d0ae70e48dd9de684f2e5da32de24fa2c406f6b419f77704c0e74f8')

build() {
  # TODO: build from sources
  true
}

package() {
  cd "$srcdir"/commons-logging-$pkgver/
  install -d "$pkgdir"/usr/share/java/commons-logging/
  install -m0644 commons-logging-$pkgver.jar \
    "$pkgdir"/usr/share/java/commons-logging/commons-logging.jar
}
