summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be8f6b3afa0bc7f6edaa14b7d1eae7a8a5b2fa22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Robert F. Nash <robert@robertnash.net>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>

pkgname=thinkingrock
pkgver=2.2.1
pkgrel=7
pkgdesc="Java-based GTD application"
arch=('any')
url="http://www.thinkingrock.com.au"
license=('CDDL')
depends=('jre6' 'xdg-utils' 'hicolor-icon-theme' 'gendesk')
install="$pkgname.install"
source=("http://downloads.sourceforge.net/thinkingrock/tr-$pkgver.tar.gz"
        'dirstructure.patch'
        "$pkgname.png"
        "$pkgname.install")
sha256sums=('f54d3206fed91aacef776f3d66979bc0bb97893e3e922738fa3156c4fcdedc42'
            'e5bd24fafa08bdc2655447c82f0ad1cb282f16d36098f2cac6084205f3c605cb'
            '921b96171fa464fada4362e8bc14e217f23e15aa4745d297b44ec504ce98db06'
            'f8f6bdbcd42d322f7325beaf927b3ef7b5a769070e91d2b89f1a6815f1fa68f7')

prepare() {
  cd "tr-$pkgver"

  gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" \
    --categories 'Office;Java'
  patch -Np1 < ../dirstructure.patch
}

package() {
  cd "tr-$pkgver"

  install -d "$pkgdir/opt/$pkgname" "$pkgdir/usr/share/pixmaps"
  cp -r etc ide10 platform9 tr "$pkgdir/opt/$pkgname"
  rm -f "$pkgdir/opt/$pkgname/etc/tr.conf~"
  install -Dm644 "$pkgname.desktop" \
      "$pkgdir/usr/share/applications/$pkgname.desktop"
  install -Dm644 bin/tr.png \
      "$pkgdir/usr/share/icons/hicolor/48x48/apps/$pkgname.png"
  install -Dm644 "../$pkgname.png" \
      "$pkgdir/usr/share/icons/hicolor/128x128/apps/$pkgname.png"
  ln -s "../icons/hicolor/128x128/apps/$pkgname.png" \
      "$pkgdir/usr/share/pixmaps/$pkgname.png"
  install -Dm755 bin/tr "$pkgdir/usr/bin/$pkgname"
}

# vim:set ts=2 sw=2 et: