summaryrefslogtreecommitdiff
path: root/community/prboom/PKGBUILD
blob: 94106432e6e8919382c7c398102f1e588d71d445 (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
# $Id: PKGBUILD 57863 2011-11-03 19:29:22Z lfleischer $
# Maintainer: 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=5
pkgdesc='A game engine which provides a program to play Doom levels.'
url='http://prboom.sourceforge.net/'
license=('GPL2')
arch=('i686' 'x86_64' 'mips64el')
depends=('libpng' 'mesa' 'sdl_mixer' 'sdl_net')
source=("http://downloads.sourceforge.net/prboom/${pkgname}-${pkgver}.tar.gz"
        'libpng-1.4.patch')
md5sums=('a8a15f61fa2626ab98051ab2703378c4'
         'ba53474db8e747035ca2320a445e4ae0')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"

	patch -p1 < ../libpng-1.4.patch

	./configure --prefix=/usr --disable-i386-asm
	sed -i "s|/games|/bin|g" "${srcdir}/${pkgname}-${pkgver}/src/Makefile"
	make
}

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