updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / minestein / PKGBUILD
blobefa2b8285400f2c0659ddbc4928d27c7af81cfda
1 # Contributor: Eric Forgeot < http://anamnese.online.fr >
3 pkgname=minestein
4 pkgver=1
5 pkgrel=7
6 pkgdesc="A version of the famous Minesweeper game which will always produce puzzles that can be solved using logic."
7 arch=(i686 x86_64)
8 url="http://sourgumdrop.org.uk/minestein_1.html"
9 license=('GPL')
10 depends=('glibc' 'python2' 'tk' )
11 makedepends=('unzip')
12 source=(http://sourgumdrop.org.uk/pad/Minestein.zip)
13 md5sums=('636769163002a521bcf884bd40bc7e73')
15 build() {
16   cd $srcdir/
17   mkdir -p $pkgdir/usr/{bin,share/minestein}
18   install -m666 \
19      Minestein_icon.ico  \
20      Minestein_pad_file.xml  \
21      Minestein.pyw \
22      $pkgdir/usr/share/minestein
23   echo -e "#!/bin/sh\npython2 /usr/share/minestein/Minestein.pyw" > $pkgdir/usr/bin/minestein
24   chmod 777 $pkgdir/usr/bin/minestein
26 #desktop icons
27         mkdir -p $pkgdir/usr/share/pixmaps
28         mkdir -p $pkgdir/usr/share/applications
30         cp $srcdir/../$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
31         
32         install -D -m644 $srcdir/../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop