summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 63d1f2324b5941041d8679fd3e745950fc9c42ad (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
# Maintainer: j-james <jj@j-james.me>
# Contributor: Marc Baudoin <babafou@babafou.eu.org>
# Contributor: Tobias Thrien <tobias-thrien@web.de>
pkgname=xminesweeper
_pkgname=xdemineur
pkgver=2.1.1
pkgrel=3
pkgdesc="A minesweeper game for the X Window System"
arch=('i686' 'x86_64')
url="http://www.babafou.eu.org/xdemineur/"
license=('custom')
depends=('libx11' 'libxpm')
makedepends=('imake')
source=('http://www.babafou.eu.org/xdemineur/xdemineur-2.1.1.tar.gz'
        'xdemineur.desktop'
        'xdemineur.xpm'
        'bugfix.diff')
sha256sums=('593824412a208a1b75d5b15745a271dc3eba330d41f7718f4826567d04bcbb9b'
            '99816f3dc5b22e2cabe1350182399780eab2eff927d076fced44ef2028f5acf7'
            'a3b9b7b073313a2ea457a6dc734ac43826577a57dec403bd3962ca3c348a5809'
            '3b07e249d61229aacb96e3a3d889748ccbbdac1ced07627efc1dad6dbdd0d486')

build() {
    cd $_pkgname-$pkgver
    patch <../bugfix.diff
    xmkmf
    make
}

package() {
    install -Dm644 $_pkgname.desktop "$pkgdir/usr/share/applications/$_pkgname.desktop"
    install -Dm644 $_pkgname.xpm "$pkgdir/usr/share/pixmaps/$_pkgname.xpm"
    cd $_pkgname-$pkgver
    make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX=/usr install
    make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX=/usr install.man
}