desktop/chocolate-doom/PKGBUILD

49 lines
1.4 KiB
Bash
Raw Normal View History

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=chocolate-doom
2014-12-20 13:45:10 +08:00
pkgver=2.1.0
pkgrel=1
pkgdesc="A Doom port reproducing the behavior of the original DOS version."
arch=('i686' 'x86_64')
url="http://www.chocolate-doom.org/"
license=('GPL2')
depends=('sdl_mixer' 'sdl_net')
makedepends=('autoconf' 'automake')
2012-03-07 19:00:46 +08:00
categories=('games')
install=$pkgname.install
2014-12-20 13:45:10 +08:00
source=(http://www.chocolate-doom.org/downloads/${pkgver}/chocolate-doom-${pkgver}.tar.gz \
chocolate-doom.png \
chocolate-setup.png \
chocolate-doom.desktop \
chocolate-setup.desktop)
2014-12-20 13:45:10 +08:00
md5sums=('b4c4e9063e94f269292a4fa946ebf33c'
'7202cf0d89b6e339996028eaa08087b5'
'dbd12210652965e96a8127e22fe4a4cb'
'3ba5256126c0c5a0492c53d4c8beb45d'
'da656a93e2f855761c7cce2874d6e72c')
build() {
cd $srcdir/$pkgname-$pkgver
./configure \
--prefix=/usr
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
install -m644 -D ../chocolate-doom.png $pkgdir/usr/share/pixmaps/$pkgname.png
install -m644 ../chocolate-setup.png $pkgdir/usr/share/pixmaps/chocolate-setup.png
mkdir -p $pkgdir/usr/share/{applications,doom}
install -m644 ../chocolate-{doom,setup}.desktop \
$pkgdir/usr/share/applications/
install -m644 -D src/doom-screensaver.desktop \
$pkgdir/usr/share/applications/chocolate-doom-screensaver.desktop
}