diff options
-rw-r--r-- | pcr/prboom/PKGBUILD | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/pcr/prboom/PKGBUILD b/pcr/prboom/PKGBUILD index 4e53820bb..577d7b4e5 100644 --- a/pcr/prboom/PKGBUILD +++ b/pcr/prboom/PKGBUILD @@ -1,34 +1,41 @@ -# $Id: PKGBUILD 77655 2012-10-13 11:44:28Z allan $ -# Maintainer (Arch): Lukas Fleischer <archlinux at cryptocrack dot de> -# Contributor (Arch): Thayer Williams <thayer@archlinux.org> -# Contributor (Arch): dale <dale@archlinux.org> +# 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') -arch=('i686' 'x86_64') depends=('libpng' 'sdl_mixer' 'sdl_net' 'glu') makedepends=('mesa') -source=("http://downloads.sourceforge.net/prboom/${pkgname}-${pkgver}.tar.gz" +source=("http://downloads.sourceforge.net/prboom/$pkgname-$pkgver.tar.gz" 'libpng-1.4.patch') -md5sums=('a8a15f61fa2626ab98051ab2703378c4' - 'ba53474db8e747035ca2320a445e4ae0') +sha256sums=('226c1c470f8cc983327536404f405a1d026cf0a5188c694a1243cc8630014bae' + 'eb3b41139b8269f9223b084f8444e306dac60dc6fc190d7fabf41b162adca385') -build() { - cd "${srcdir}/${pkgname}-${pkgver}" +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 +} - patch -p1 < ../libpng-1.4.patch +build() { + cd $pkgname-$pkgver - ./configure --prefix=/usr --disable-i386-asm - sed -i "s|/games|/bin|g" "${srcdir}/${pkgname}-${pkgver}/src/Makefile" - make + ./configure --prefix=/usr --disable-i386-asm + make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR="${pkgdir}" install -} + cd $pkgname-$pkgver + make DESTDIR="$pkgdir/" install +} |