updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / slf4j / PKGBUILD
blobb757e9e668fd5a79f4f11a9c52d8ffd7087f9781
1 # Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
3 pkgname=slf4j
4 pkgver=1.6.4
5 pkgrel=1
6 pkgdesc="A successor to the log4j project."
7 arch=('i686' 'x86_64')
8 url="http://www.slf4j.org"
9 license=('MIT')
10 depends=('java-environment')
11 optdepends=('log4j')
12 source=(${url}/dist/${pkgname}-${pkgver}.tar.gz setClasspath.sh migrator.desktop)
14 package() {
15         mkdir -p ${pkgdir}/usr/share/java/${pkgname}
17         cd ${srcdir}
18         install -D -m644 migrator.desktop ${pkgdir}/usr/share/applications/migrator.desktop || return 1
19         install -m644 setClasspath.sh ${pkgdir}/usr/share/java/${pkgname} || return 1
20         cd ${pkgname}-${pkgver}
21         install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt || return 1
23         # jars
24         for i in jcl-over jul-to log4j-over; do
25                 install -m644 ${i}-${pkgname}-${pkgver}.jar ${pkgdir}/usr/share/java/${pkgname} || return 1
26         done
27         for i in api ext jcl jdk14 log4j12 migrator nop simple; do
28                 install -m644 ${pkgname}-${i}-${pkgver}.jar ${pkgdir}/usr/share/java/${pkgname} || return 1
29         done
30         for i in ${pkgdir}/usr/share/java/${pkgname}/*.jar; do
31                 _filename=${i##*\/}
32                 ln -s ${_filename} ${pkgdir}/usr/share/java/${pkgname}/${_filename/-${pkgver}/} || return 1
33         done
36 md5sums=('fb5f588a2b2bf3d10f5d90dcce1c85e0'
37          '30637bebdbd56f4800072e2c931e13d1'
38          'f3c2acb8d560c27c0a1ec78e27c05b44')
39 sha256sums=('67bc98b28b8d84f0104f235eda0756fe91c747e599332ab61593b30ec477ad78'
40             '9a1efcd3b99c0ef88e1fbdf361a7832f09a925802a7518629f271ff8e08ae940'
41             'c81832da83a0de1de2a7169ffb1432f6e2d3cfb9c3c8a1d50baf8e902457f8cc')