updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / dosbox-svn-patched / PKGBUILD
blob7343b89811a843e8ade47faf9886ec57e0007594
1 # Mantainer: Franco Tortoriello
3 _pkgname=dosbox
4 pkgname=dosbox-svn-patched
5 pkgver=3752
6 pkgrel=2
7 pkgdesc="x86 emulator with builtin DOS, with several patches to increase functionality"
8 arch=('i686' 'x86_64')
9 url="http://$_pkgname.sourceforge.net/"
10 license=('GPL')
11 depends=('sdl_net' 'zlib' 'sdl_sound' 'libgl' 'libpng' 'alsa-lib' 'openglide-cvs')
12 makedepends=('mesa' 'subversion')
13 provides=($_pkgname $_pkgname-svn)
14 conflicts=($_pkgname $_pkgname-svn)
15 install=$_pkgname.install
16 source=($_pkgname.desktop $_pkgname.png
17         'glide.patch' 'mt32.patch' 'ne2000.patch' 'beep.patch'
18         'swapstereo.patch' 'multiimage.patch')
19 md5sums=('f09753c6af7153327296d6618773d245'
20          '2aac25fc06979e375953fcc36824dc5e'
21          '8bbfe5812d95dd28aebf8108010882f3'
22          'd54b1dd1bb65d2205e2e92d3f16e4761'
23          '856100939c330010f6d49ca7ae42d9dd'
24          'c1589044a2b9102e2a5ae72d372c1492'
25          'ba65250c6164dc140c9df968679f03f7'
26          '748577d1991e68428919bf2148c00069')
28 _svntrunk=https://$_pkgname.svn.sourceforge.net/svnroot/$_pkgname/$_pkgname/trunk
29 _svnmod=$_pkgname
31 build() {
32   cd "$srcdir"
34   if [ -d "$_svnmod/.svn" ]; then
35     (cd "$_svnmod" && svn up -r "$pkgver")
36   else
37     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
38   fi
40   msg "SVN checkout done or server timeout"
42   rm -rf "$srcdir/$_svnmod-build"
43   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
44   cd "$srcdir/$_svnmod-build"
46   msg "Patching..."
47   patch -p1 -i ../glide.patch
48   patch -p1 -i ../mt32.patch
49   patch -p1 -i ../ne2000.patch
50   patch -p1 -i ../beep.patch
51   patch -p1 -i ../swapstereo.patch
52   patch -p1 -i ../multiimage.patch
54   msg "Starting build..."
55   ./autogen.sh
56   ./configure --prefix="/usr" --sysconfdir="/etc/$_pkgname" \
57         CXXFLAGS="$CXXFLAGS -I/usr/include/openglide"
58   make
61 package() {
62   cd "$srcdir/$_svnmod-build"
63   make DESTDIR="$pkgdir" install
65   install -Dm644 README "$pkgdir/usr/share/doc/$_pkgname/README"
66   install -Dm644 docs/README.video "$pkgdir/usr/share/doc/$_pkgname/README.video"
67   install -Dm644 ../$_pkgname.png "$pkgdir/usr/share/pixmaps/$_pkgname.png"
68   install -Dm644 ../$_pkgname.desktop "$pkgdir/usr/share/applications/$_pkgname.desktop"