1 # Maintainer: TDY <tdy@gmx.com>
2 # Contributor: Anders Bergh <anders1@gmail.com>
7 pkgdesc="A simple Java client for IRC"
9 url="http://www.dmdirc.com/"
11 depends=('java-runtime>=6')
12 source=(http://$pkgname.googlecode.com/files/DMDirc-$pkgver.jar
13 $pkgname.desktop $pkgname.launcher $pkgname.svg)
14 noextract=(DMDirc-$pkgver.jar)
15 md5sums=('a88491b4c6663b090d3a19030cc58288'
16 'd50133862414d1986eeb9b2e5e837936'
17 '17b30e6bec7a2c71e118c70bf10a6f67'
18 '74b7ba9c92da7bd41a0545f103aa99b6')
22 install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
23 bsdtar --strip=3 -xf DMDirc-$pkgver.jar \
24 -C "$pkgdir/usr/share/licenses/$pkgname" com/$pkgname/licenses/*
25 install -Dm755 $pkgname.launcher "$pkgdir/usr/bin/$pkgname"
26 install -Dm644 DMDirc-$pkgver.jar "$pkgdir/usr/share/java/$pkgname/DMDirc.jar"
27 install -Dm644 $pkgname.svg "$pkgdir/usr/share/java/$pkgname/icon.svg"
28 install -Dm644 $pkgname.desktop \
29 "$pkgdir/usr/share/applications/$pkgname.desktop"