summaryrefslogtreecommitdiff
path: root/pcr/prboom/PKGBUILD
blob: 577d7b4e51ec187c089e5e3355852c452e6c7a97 (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
# Maintainer (AUR): carstene1ns <url/mail: arch carsten-teibes de>
# Contributor (AUR): Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor (AUR): Thayer Williams <thayer@archlinux.org>
# Contributor (AUR): dale <dale@archlinux.org>

pkgname=prboom
pkgver=2.5.0
pkgrel=7
arch=('i686' 'x86_64')
arch+=('armv7h')
pkgdesc='A game engine which provides a program to play Doom levels.'
url='http://prboom.sourceforge.net/'
license=('GPL2')
depends=('libpng' 'sdl_mixer' 'sdl_net' 'glu')
makedepends=('mesa')
source=("http://downloads.sourceforge.net/prboom/$pkgname-$pkgver.tar.gz"
        'libpng-1.4.patch')
sha256sums=('226c1c470f8cc983327536404f405a1d026cf0a5188c694a1243cc8630014bae'
            'eb3b41139b8269f9223b084f8444e306dac60dc6fc190d7fabf41b162adca385')

prepare() {
  cd $pkgname-$pkgver

  # path fix
  sed "s|/games|/bin|g" -i src/Makefile.in
  # allow building with newer libpng
  patch -p1 < ../libpng-1.4.patch
}

build() {
  cd $pkgname-$pkgver

  ./configure --prefix=/usr --disable-i386-asm
  make
}

package() {
  cd $pkgname-$pkgver

  make DESTDIR="$pkgdir/" install
}