blob: 169d8d4d1bf136e21b27e28a892f900d2468bf21 (
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> - https://git.io/ctPKG
# Contributor: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Thayer Williams <thayer@archlinux.org>
# Contributor: dale <dale@archlinux.org>
pkgname=prboom
pkgver=2.5.0
pkgrel=8
arch=('i686' 'x86_64')
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
# gcc 10 work-around
CFLAGS="$CFLAGS -fcommon" \
./configure --prefix=/usr --disable-i386-asm --disable-cpu-opt
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir/" install
}
|