summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8fe88c5c9926a1daeb05d46bdbeded110fc100ee (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
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: megadriver <megadriver at gmx dot com>

pkgname=alex4
pkgver=1.2.1
pkgrel=2
pkgdesc="Help Alex the Allegator rescue Lola before the humans make a pair of shoes out of her!"
url="http://allegator.sourceforge.net"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('aldumb' 'allegro4')
install=$pkgname.install
source=($pkgname-$pkgver.tar.gz::"https://github.com/carstene1ns/alex4/archive/$pkgver.tar.gz"
	    $pkgname-gcc10.patch::https://github.com/carstene1ns/alex4/commit/249b013ddb40e54dab1389fcdeb73fb52fd3c2fb.patch)
sha256sums=('f0bdb6f23c858628de8c74b6625d51eccf6b927ecb21744a25dd58d6e02c4c5f'
            '48a106a33551143c1dfbb0f1e97473171a6d59e49fadf01ecaf2b94956de1e1e')

prepare() {
  patch -d $pkgname-$pkgver -Np1 < $pkgname-gcc10.patch
}

build() {
  make -C $pkgname-$pkgver PREFIX=/usr
}

package() {
  cd $pkgname-$pkgver

  make PREFIX=/usr DESTDIR="$pkgdir/" install
  # config
  install -Dm0644 alex4.ini "$pkgdir"/usr/share/alex4/alex4.ini
}