summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e79bbaca1655a5f61c546aa3839606abead7540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Mantainer: Cork

pkgname=dosbox-x-fast-bios-git
pkgver=7601.1adf084f2
pkgrel=1
pkgdesc="x86 emulator with builtin DOS, with patches with more features, with fastbios on by default"
arch=(i686 x86_64)
url="http://dosbox.sourceforge.net"
license=(GPL)
depends=(fluidsynth libxkbfile libpng libxrandr mesa ffmpeg)
conflicts=(dosbox-x-git)
makedepends=(git glu)
optdepends=()
source=(dosbox-x::git://github.com/joncampbell123/dosbox-x.git
        default-to-fast-bios.patch
	dosbox-x.png
	dosbox-x.desktop)

pkgver() {
  cd "$SRCDEST/dosbox-x"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "$srcdir/dosbox-x"
  git apply ../default-to-fast-bios.patch
  sed -i 's/enable-debug=heavy/disable-debug/g' build-debug
  ./build-debug
}

package() {
  cd "$srcdir/dosbox-x"
  make DESTDIR="$pkgdir" install
  install -Dm644 "$srcdir/dosbox-x.png" \
	"$pkgdir/usr/share/pixmaps/dosbox-x.png"
  install -Dm644 "$srcdir/dosbox-x.desktop" \
	"$pkgdir/usr/share/applications/dosbox-x.desktop"
}

md5sums=('SKIP'
         'aa3c4f3ce625e7a2d523ccfe77478a89'
         '3dcfe45c5ed0433316eaea51e3620b36'
         '615228a51b52d4788c73940602f1dc97')