desktop/dosbox/PKGBUILD

47 lines
1.3 KiB
Bash
Raw Normal View History

2010-09-28 03:06:47 +08:00
pkgname=dosbox
pkgver=0.74
2015-03-25 06:50:29 +08:00
pkgrel=7
2010-09-28 03:06:47 +08:00
pkgdesc="An emulator with builtin DOS for running DOS Games"
2013-07-27 18:56:13 +08:00
arch=('x86_64')
2010-09-28 03:06:47 +08:00
url="http://dosbox.sourceforge.net/"
license=('GPL')
2015-03-24 21:10:55 +08:00
depends=('sdl_net' 'sdl_sound' 'libgl' 'libpng' 'alsa-lib' 'gcc-libs' 'zlib' 'glu')
makedepends=('mesa-libgl' 'gendesk')
categories=('games' 'system')
2010-09-28 03:06:47 +08:00
source=("http://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.gz"
2015-03-24 21:10:55 +08:00
'dosbox.png'
'gcc46.patch')
2010-09-28 03:06:47 +08:00
md5sums=('b9b240fa87104421962d14eee71351e8'
'2aac25fc06979e375953fcc36824dc5e'
'3fba2e3c7c43290319b2928f40ed30e5')
2010-09-28 03:06:47 +08:00
2013-07-27 18:56:13 +08:00
prepare() {
2015-03-24 21:10:55 +08:00
cd ${srcdir}
2015-03-25 06:50:29 +08:00
gendesk --pkgname "${pkgname}" --pkgdesc "${pkgdesc}"
2015-03-24 21:10:55 +08:00
2010-09-28 03:06:47 +08:00
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np1 -i "$srcdir/gcc46.patch"
sed -i 's/png_check_sig/png_sig_cmp/' configure
2013-07-27 18:56:13 +08:00
}
build(){
cd ${srcdir}/${pkgname}-${pkgver}
2015-03-24 21:10:55 +08:00
./configure --prefix=/usr --sysconfdir=/etc/dosbox
make
2010-09-28 03:06:47 +08:00
}
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
2010-09-28 03:06:47 +08:00
install -Dm644 ${srcdir}/${pkgname}.png \
${pkgdir}/usr/share/pixmaps/${pkgname}.png
2010-09-28 03:06:47 +08:00
install -Dm644 ${srcdir}/${pkgname}.desktop \
${pkgdir}/usr/share/applications/${pkgname}.desktop
2010-09-28 03:06:47 +08:00
}