updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / mmtyping / PKGBUILD
blob358edd54f8cd3beb15122fbee5e223c420362fb6
1 # Maintainer: Marek Otahal <markotahal gmail>
3 pkgname=mmtyping
4 pkgver=2.0.8
5 pkgrel=1
6 pkgdesc="Master Mind touch typing tutor; all ten fingers, intelligent learning, about 5 times faster than any other way; layouts Latin, Dvorak, querty, ..."
7 arch=(any)
8 url="http://www.turnquist.org/"
9 license=(custom:freeware)
10 depends=('wine')
11 install=mmtyping.install
12 source=('http://www.turnquist.org/temporary/mm208.exe'
13         'mmtyping.desktop' 'mmtyping')
14 sha1sums=('aca19b0348e9b5270bca573fe99a4ef4dcf05ade'
15           '384c94b73fe6697badc45f9561c033575a60ad47'
16           'd895abe2e905b8aa904cb3c1fb7268575d175a6b')
18 package() {
19 msg "installing $pkgname ..."
20 msg "you MUST install to the /tmp directory for this installer to work"
21 msg "package will later be installed to normal location, this is just a workaround"
22 msg "don't worry about any error, also un-installation select ok"
23 msg "read this and press any key to continue the installation"
24 read a
25 cd $srcdir
26 wine mm208.exe
27 cp -a /tmp/{Binary,Docs} $srcdir
28 wine /tmp/Uninstall.exe
29 rm /tmp/Uninstall.exe
31 cd $srcdir
33 install -m755 -d ${pkgdir}/usr/bin
34 install -m755 -d $pkgdir/usr/share/doc/$pkgname
35 install -m755 -d $pkgdir/usr/share/licenses/$pkgname
36 install -m755 -d $pkgdir/usr/share/$pkgname
37 install -m755 -d $pkgdir/usr/share/applications
38 install -m755 -d $pkgdir/usr/share/icons
40 install -m755 $pkgname ${pkgdir}/usr/bin
41 mv $srcdir/{Binary,Docs} $pkgdir/usr/share/$pkgname/
42 ln -s /usr/share/$pkgname/Docs/License.rtf $pkgdir/usr/share/licenses/$pkgname/License.rtf
43 ln -s /usr/share/$pkgname/Docs $pkgdir/usr/share/doc/$pkgname
44 ln -s /usr/share/$pkgname/Binary/Keyboard.ico $pkgdir/usr/share/icons/mmtyping.ico
45 install -m644 $srcdir/mmtyping.desktop $pkgdir/usr/share/applications/
46 msg "done"
49 # vim:set ts=2 sw=2 et: