summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: feec32ec389594bb209bb5060ab2a5213872f3ce (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
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: ploxiln <pierce.lopez@gmail.com>
# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>

pkgname=hexxagon
pkgver=1.0.2
pkgrel=3
pkgdesc='A clone of the old DOS game Hexxagon, with enhanced features and strong AI'
arch=('i686' 'x86_64')
license=('GPL')
url='http://www.nesqi.se'
depends=('gtkmm')
source=("http://nesqi.se/download/$pkgname-$pkgver.tar.bz2"
        "$pkgname-$pkgver-glibc-2.31.patch"
        "$pkgname.desktop"
        "$pkgname.png")
sha256sums=('49b13516822fd32a9c58d62735b841a6e47e1714273e03ad20d8a9343a7623cc'
            'e2564d479a5a3c614c37f043db17b27201f1fd054c1f86028c667eebf25d2926'
            '673fb40dbfeb96f2594f06f1b105afd23686472d5ef380e8b07d1a0f30b1e822'
            '0405a14380a379e6502b663d9db77be8471b84aa838fe3f645e25bdbd03c78c7')

prepare() {
  # remove timezone redeclarations
  patch -d $pkgname-$pkgver -Np1 < $pkgname-$pkgver-glibc-2.31.patch
}

build() {
  cd $pkgname-$pkgver

  # disable glib deprecation warnings
  export CPPFLAGS="$CPPFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
  ./configure --prefix=/usr
  make
}

package() {
  make -C $pkgname-$pkgver DESTDIR="$pkgdir" install

  # .desktop entry
  install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
  install -Dm644 $pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
}