1 # Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com>
5 pkgdesc="An emulator with builtin DOS for running DOS Games"
7 url="http://dosbox.sourceforge.net/"
10 depends=('sdl_net' 'sdl_sound' 'libgl' 'libpng' 'alsa-lib' 'gcc-libs')
11 makedepends=('subversion')
17 source=('dosbox.desktop' 'dosbox-16.png' 'dosbox-48.png' 'dosbox-128.png')
18 install=dosbox.install
20 md5sums=('eac69b50c2d7b34503a97cb521fe21ff'
21 '4b26bcedfc56e4ef390ee4c66a774827'
22 'b49ff452861ba1118f06cf5421878636'
23 'c48983033ba1ad1f742577b5df5d8ae6')
25 _svntrunk="https://dosbox.svn.sourceforge.net/svnroot/dosbox/dosbox/trunk"
31 if [ -d $_svnmod/.svn ]; then
32 (cd $_svnmod && svn up -r $pkgver)
34 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
37 msg "SVN checkout done or server timeout"
38 msg "Starting make..."
40 rm -rf "$srcdir/$_svnmod-build"
41 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
42 cd "$srcdir/$_svnmod-build"
48 msg "Building and installing..."
50 ./autogen.sh || return 1
52 ./configure --prefix=/usr --sysconfdir=/etc/dosbox
53 # Fix invalid permissions FS#10732
54 chmod 755 $startdir/pkg/usr/man/man1
56 make prefix=$startdir/pkg/usr install
58 # Install desktop files and icon
59 for _i in 16 48 128; do
60 install -D -m644 $srcdir/dosbox-$_i.png "$pkgdir"/usr/share/icons/hicolor/${_i}x${_i}/apps/dosbox.png
62 install -D -m644 $srcdir/dosbox.desktop "$pkgdir"/usr/share/applications/dosbox.desktop
64 msg "Removing build directory..."
66 rm -Rf ${_svnmod}-build