summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 789a87f32d9bc49c0d619a9cf3b6ef79eaf44ab0 (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
# Maintainer:
# Contributor: Michael Straube <michaelqstraube@gmail.com>
# Contributor: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: kusakata <shohei atmark kusakata period com>

pkgname=galois
pkgver=0.7
pkgrel=1
pkgdesc='A falling blocks game with blocks of various shapes and sizes'
arch=('x86_64')
url="https://www.nongnu.org/galois"
license=('GPL3')
depends=('gtkmm3' 'libxml++')
source=("https://download.savannah.gnu.org/releases/$pkgname/source/$pkgname-$pkgver.tar.gz"
        "galois-0.7-install-path.patch"
        "galois-0.7-full-relro.patch"
        "galois-0.7-libxml++3.0.patch")
sha512sums=('8d480b9e5746dfe00c4684ae179697e82d5c259ae092bb18c29733e69752175e584f978ce315b9b1bb2868d7b3e6b261dabef91741523ed108f912e9bfc52b1f'
            '5f35dcdbd113441ac64637576c973dc5b2bab772ee058f4fa061b2ba500c36e02db383dc919d4be9077e1dfba258cd51620e484763a367f3f979766f24c213a0'
            '6e7897d8fe64aea5397b8596169e12f52e5c97f7c89ca98b339dbeadd5affba37ce6151eef727ed3807aac4c16407560d433a817d71d0cc1955a8efb271ebfa8'
            'b8ca1a9dd34f9e74b377bd413837d438515f65a205795307e09f462df2c7241dc1ea46e518b6225792618f35313c43712964a65ef5ab469de5f99a0512cd3aa3')

prepare() {
  cd $pkgname-$pkgver
  patch -Np1 -i ../galois-0.7-install-path.patch
  patch -Np1 -i ../galois-0.7-full-relro.patch
  patch -Np1 -i ../galois-0.7-libxml++3.0.patch
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

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