summaryrefslogtreecommitdiffstats
path: root/tipp10/PKGBUILD
blob: 21ba8637a31d927384be8957710877a8e2bddef4 (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
# Maintainer: Florian Pritz <f-p@gmx.at>
# Contributor: toliman <altergan@hs-albsig.de>

pkgname=tipp10
pkgver=2.0.3
pkgrel=3
pkgdesc="intelligent typing tutor (german only)"
arch=('i686' 'x86_64')
url="http://www.tipp10.de/"
license=('GPL2')
depends=('qt>=4.2.2')
makedepends=('unzip' 'make')
source=(tipp10.desktop tipp10.png defines.h.patch gcc-4.5.patch \
  "http://www.tipp10.de/download_hidden/tipp10_source_v2-0-3.zip")

build() {
  sed -i 's/tipp10v2.template/..\/share\/tipp10\/tipp10v2.template/' $srcdir/tipp10/def/defines.h

  cd $srcdir/tipp10
  patch -p0 < "$srcdir/defines.h.patch" || return 1
  patch -p0 < "$srcdir/gcc-4.5.patch" || return 1
  qmake
  make || return 1
  install -D tipp10 $pkgdir/usr/bin/tipp10
  install -D tipp10v2.template $pkgdir/usr/share/tipp10/tipp10v2.template
  install -D $srcdir/tipp10.png $pkgdir/usr/share/pixmaps/tipp10.png
  install -D $srcdir/tipp10.desktop $pkgdir/usr/share/applications/tipp10.desktop
}
md5sums=('e0d6c26220396551386f91ce893e040c'
         'ff788e726d357370df1e7c8b19d38fd4'
         'ce67b64cb3a1d25119acd1a43804304d'
         'a9d388ddb17ae93f13acb915bc8eba57'
         'bac29896ec992496f7e0aab992993004')
sha1sums=('c0f9f6dab87ed2cc0557bd0bc29a102f8f4483b7'
          '42cc902010030dcea92dd64053523e24028b2dae'
          '340aa263721b9fc1df74a1cc828c990061c7d625'
          '3eb601ab7c1d68d8c64e949e7e4f8a83b06a518e'
          'faf8c7799c934eaca83a0e077cf9ba458334680b')