summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f85321d0251b226afcf238d1b61f0f39e6b6c0fb (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
# Mantainer: Franco Tortoriello

pkgname=dosbox-x-sdl2-git
pkgver=13888.82ebfea01
pkgrel=1
pkgdesc="x86 emulator with builtin DOS, with patches with more features - sdl2 git version"
arch=(i686 x86_64)
url="http://dosbox.sourceforge.net"
license=(GPL)
depends=(fluidsynth libxkbfile libxrandr mesa ffmpeg sdl2_net physfs)
makedepends=(git glu)
optdepends=()
conflicts=(dosbox-x-sdl2 dosbox-x-git)
install='dosbox-x.install'
source=(dosbox-x::git://github.com/joncampbell123/dosbox-x.git)
sha256sums=('SKIP')

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

build() {
  cd "$srcdir/dosbox-x"
  export LDFLAGS="${LDFLAGS//,--as-needed}"
  ./autogen.sh
  ./configure --enable-core-inline --disable-debug --enable-avcodec --prefix=/usr --enable-sdl2
  make -j$(nproc)  
}

package() {
  cd "$srcdir/dosbox-x"
  make DESTDIR="$pkgdir" install
}