# $Id: PKGBUILD 90018 2013-05-06 19:36:46Z foutrelis $ # Maintainer: Jaroslav Lichtblau # Contributor: Jelle van der Waa # Contributor: James Rayner # Contributor: Ben pkgname=dosbox pkgver=0.74 pkgrel=5 pkgdesc="Emulator with builtin DOS for running DOS Games" arch=('i686' 'x86_64' 'mips64el') url="http://dosbox.sourceforge.net/" license=('GPL') depends=('sdl_net' 'zlib' 'sdl_sound' 'libgl' 'libpng' 'alsa-lib' 'gcc-libs' 'glu') makedepends=('mesa' 'gendesk') source=("http://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.gz" 'dosbox.png' 'gcc46.patch') md5sums=('b9b240fa87104421962d14eee71351e8' '2aac25fc06979e375953fcc36824dc5e' '3fba2e3c7c43290319b2928f40ed30e5') build(){ cd "$srcdir" gendesk cd "${pkgname}-${pkgver}" patch -Np1 -i "$srcdir/gcc46.patch" sed -i 's/png_check_sig/png_sig_cmp/' configure ./configure --prefix=/usr \ --sysconfdir=/etc/dosbox make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install # install docs, make does not install them install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README install -Dm644 docs/README.video "$pkgdir"/usr/share/doc/$pkgname/README.video install -Dm644 "${srcdir}/${pkgname}.png" \ "${pkgdir}/usr/share/pixmaps/${pkgname}.png" install -Dm644 "${srcdir}/${pkgname}.desktop" \ "${pkgdir}/usr/share/applications/${pkgname}.desktop" }