updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / tomighty / PKGBUILD
blob4ae866019c026ac149d7119f6b5f03d1349a6a0c
1 # Maintainer: Slavi Pantaleev <s.pantaleev at gmail.com>
3 pkgname=tomighty
4 pkgver=0.7.1
5 pkgrel=2
6 pkgdesc='Desktop timer for Pomodoro Technique users'
7 arch=('any')
8 url="http://www.tomighty.org/"
9 license=('Apache')
10 depends=('java-runtime')
11 makedepends=('imagemagick')
12 source=('tomighty'
13                 'tomighty.desktop'
14                 'http://tomighty.googlecode.com/files/'$pkgname'-'$pkgver'.jar'
15                 'https://github.com/ccidral/tomighty/raw/50d0094c024f1923bd0d6ff1bf77572ae5f5b5f6/img/tomato.ico')
16 md5sums=('941bdeb609169335cea3e9cf40904883'
17          '66425a9e185788f720b466ca1caf5769'
18          '73094fd45e3683dc0b560642e0543176'
19          'f92eb060209cc142b9d6ff644f751b5f')
21 package() {
22         # This extracts several different sizes as {tomato}-{number}.png
23         # tomato-0.png is the largest and the one we want
24         convert $srcdir/tomato.ico $srcdir/tomato.png
25         install -Dm 644 $srcdir/tomato-0.png $pkgdir/usr/share/pixmaps/$pkgname.png
27         install -Dm 644 $srcdir/$pkgname-$pkgver.jar $pkgdir/usr/share/java/$pkgname/$pkgname.jar
28         install -Dm 644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
30         install -Dm 755 $pkgname $pkgdir/usr/bin/$pkgname