updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / dmdirc / PKGBUILD
blobb40cce7c97f6ed83de4946a6551e1f844664f285
1 # Maintainer:  TDY <tdy@gmx.com>
2 # Contributor: Anders Bergh <anders1@gmail.com>
4 pkgname=dmdirc
5 pkgver=0.6.3m2
6 pkgrel=1
7 pkgdesc="A simple Java client for IRC"
8 arch=('i686' 'x86_64')
9 url="http://www.dmdirc.com/"
10 license=('BSD' 'MIT')
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')
20 build() {
21   cd "$srcdir"
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"