# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Simon Lipp <sloonz+aur@gmail.com>

pkgname=java-avalon-framework
pkgver=4.2.0
pkgrel=10
pkgdesc='Reusable components for J2SE applications.'
arch=('any')
url='https://excalibur.apache.org/'
license=('Apache-1.1')
depends=('java-runtime')
source=(
	"https://archive.apache.org/dist/avalon/framework/binaries/avalon-framework-$pkgver.tar.gz"
	"$pkgname-LICENSE::https://archive.apache.org/dist/avalon/framework/LICENSE.txt")
sha256sums=('bfd0fd5c8071bc37d5175586bebb9e8bf3e9de26e898ac1115f9c01a42cf0096'
            '231778ef6c6e33b1494732bccce2b93603c98e71b6b065f2f4514acf3730e8e6')

package() {
	install -Dm644 "avalon-framework/jars/avalon-framework-${pkgver}.jar" \
	  "$pkgdir/usr/share/java/avalon-framework/avalon-framework.jar"
	install -Dm644 $pkgname-LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
