summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d0c04318ce74aba2e691aba84c60d423318f8c3c (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=18372.cdcfb5549
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+https://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"
}

sha256sums=('SKIP'
            'bc1665ef70ad255dcc560f40aab7808610985481f104f0e170ad28609d9c5b89'
            'caa164f3d17d414733882d29098cb9cd63faddbdd5580a0c30f1173a63c42475'
            '32f290580ec02dedd09908d8a4de10f57b94998f2c1eb597b649208cd87b2d33')