updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / twitter4j / PKGBUILD
blob421a4ce15b471c31fc6a771c3dc264eafb2ddac0
1 # Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
3 pkgname=twitter4j
4 pkgver=2.2.2
5 pkgrel=1
6 pkgdesc="A Java library for TwitterAPI, supports OAuth"
7 arch=('i686' 'x86_64')
8 url="http://twitter4j.org"
9 license=('Apache')
10 depends=('java-runtime' 'slf4j')
11 source=(${url}/en/${pkgname}-${pkgver}.zip setClasspath.sh)
13 package() {
14         mkdir -p ${pkgdir}/usr/share/java/${pkgname}
16         cd ${srcdir}
18         install -m644 setClasspath.sh ${pkgdir}/usr/share/java/${pkgname}
19         for a in async core media-support stream; do
20                 install -m644 lib/${pkgname}-${a}-${pkgver}.jar ${pkgdir}/usr/share/java/${pkgname}
21         done
22     for i in ${pkgdir}/usr/share/java/${pkgname}/*.jar; do
23                 _filename=${i##*\/}
24                 ln -s ${_filename} ${pkgdir}/usr/share/java/${pkgname}/${_filename/-${pkgver}/}
25     done
28 md5sums=('c8ab0d6f1a5d550bc063821be2388607'
29          'eb18e761893733c651af29162f10c27b')
30 sha256sums=('1ec7ee1904465e47c9aa29c5000d69723da91290c7c4a9d4ce413760fa1ae025'
31             '0c6460923b0f31358260becfedfb320c1af4b6a6b7114091718e2e208ec37dc9')