1 # $Id: PKGBUILD 54241 2011-08-15 08:53:08Z spupykin $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
4 # Contributor: Eric Belanger <belanger@astro.umontreal.ca>
5 # Contributor: Bob Finch <w9ya@arrl.net>
10 pkgdesc="DOS emulator"
11 arch=('i686' 'x86_64')
12 url="http://www.dosemu.org/"
13 license=('GPL' 'custom')
14 depends=('gpm' 'slang' 'sdl' 'libxxf86vm' 'libsndfile' 'sh' 'xorg-mkfontdir' 'xorg-bdftopcf')
15 makedepends=('subversion')
18 backup=('etc/dosemu/dosemu.conf'
19 'etc/dosemu/dosemu.users'
20 'etc/dosemu/global.conf')
21 source=(http://ftp.debian.org/debian/pool/contrib/d/dosemu/dosemu_1.4.0+svn.2010-1.debian.tar.gz
22 http://downloads.sourceforge.net/sourceforge/dosemu/dosemu-freedos-1.0-bin.tgz
24 noextract=('dosemu-freedos-1.0-bin.tgz')
25 sha256sums=('346d017686482981ab6649408d3348dad7cc86c6c12969c6fb81d1c67d084470'
26 '080c306a1b611e1861fd64466062f268eb44d2bf38082b8a57efadb5a9c0ebc7'
27 'ae737e26165c016242d5a8603a5c887c313570e1525091b30f9e8d23d1a9faab')
29 _svntrunk='https://dosemu.svn.sourceforge.net/svnroot/dosemu/trunk'
34 msg "Connecting to SVN server..."
36 if [[ -d "$_svnmod/.svn" ]]; then
37 (cd "$_svnmod" && svn up -r "$pkgver")
39 svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
42 msg "SVN checkout done or server timeout"
43 msg "Starting build..."
46 patch -p1 < ../debian/patches/debianize.patch
47 patch -p1 < ../debian/patches/spelling-fixes.patch
48 patch -p1 < ../debian/patches/manpage-dashes.patch
49 patch -p1 < ../debian/patches/force-vm86-emu.patch
50 ./configure --prefix=/usr --with-fdtarball="$srcdir/dosemu-freedos-1.0-bin.tgz" --mandir=/usr/share/man
56 make DESTDIR="$pkgdir" install
57 install -Dm 644 "$srcdir"/xdosemu.desktop "$pkgdir"/usr/share/applications/xdosemu.desktop
58 install -Dm 644 etc/dosemu.xpm "$pkgdir"/usr/share/icons/dosemu.xpm
59 install -Dm 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
60 install -Dm 644 COPYING.DOSEMU "$pkgdir"/usr/share/licenses/$pkgname/COPYING.DOSEMU