summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f0f8c872c95d092c7c04421f3ce5179687ab5b2 (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: Vladimir Gorbunov <truedaemon@gmail.com>
# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=liquidwar
pkgver=5.6.5
pkgrel=3
pkgdesc="A unique multiplayer wargame"
arch=('i686' 'x86_64')
url="https://www.ufoot.org/liquidwar/"
license=('GPL')
depends=('allegro4')
makedepends=('python')
source=("http://www.ufoot.org/download/$pkgname/v5/$pkgver/$pkgname-$pkgver.tar.gz"
        "gcc10.patch"
        "doc.patch")
sha256sums=('dad0aa84dd416cad055421ed9b40df39efae78d3df759c0583c64c54f7f2ff5f'
            '0101b8df849f8b0767e0fb0f4e3eebcea8d00c272f7827c22573cee7e38d630a'
            'fff7e5d06e29dba797055b1de3e88a1616cb72ae303e10bde9796afa0b3b3e43')

prepare() {
  cd $pkgname-$pkgver

  sed 's|EFENCE_LIBRARY)$|& -lm|g' -i src/Makefile.in
  patch -Np1 -i "${srcdir}/gcc10.patch"
  patch -Np1 -i "${srcdir}/doc.patch"
}

build() {
  cd $pkgname-$pkgver
  [[ "$CARCH" != "i686" ]] && EXTRAOPTS="--disable-asm"
  PYTHON=yes ./configure --prefix=/usr $EXTRAOPTS
  make GAMEDIR=/usr/bin DATADIR=/usr/share/liquidwar
}

package() {
  make -C $pkgname-$pkgver DESTDIR="$pkgdir/" \
    GAMEDIR=/usr/bin DATADIR=/usr/share/liquidwar install_nolink
}