summaryrefslogtreecommitdiff
path: root/pcr/mednaffe/PKGBUILD
blob: a01b07ee83f252cfcf225d0c1d78540dbe59e6d0 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Maintainer (AUR): Vaporeon <vaporeon@vaporeon.io>
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Contributor (AUR): casa <sympho08@yandex.ru>

pkgbase=mednaffe
pkgname=('mednaffe' 'mednaffe-gtk2')
pkgver=0.8.6
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/AmatCoder/mednaffe"
license=('GPL')
makedepends=('mednafen' 'gtk2' 'gtk3')
install=mednaffe.install
source=(https://github.com/AmatCoder/mednaffe/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('cda5e3ae42b696b4322dc89a3a46e4b9da4a4b36c48be454d0e591c284927420')

prepare() {
  cd "$srcdir"/$pkgbase-$pkgver

  mkdir build-gtk2
  cd build-gtk2
  ../configure --prefix=/usr
  cd ..

  mkdir build-gtk3
  cd build-gtk3
  ../configure --prefix=/usr --enable-gtk3
  cd ..
}

build() {
  cd "$srcdir"/$pkgbase-$pkgver/build-gtk2
  make

  cd "$srcdir"/$pkgbase-$pkgver/build-gtk3
  make
}

package_mednaffe() {
  pkgdesc="front-end (GUI) for mednafen emulator"
  depends=('mednafen' 'gtk3')

  cd "$srcdir"/$pkgbase-$pkgver/build-gtk3

  make prefix="$pkgdir"/usr install
}

package_mednaffe-gtk2() {
  pkgdesc="front-end (GUI) for mednafen emulator (GTK2 Version)"
  depends=('mednafen' 'gtk2')
  provides=('mednaffe')
  conflicts=('mednaffe')

  cd "$srcdir"/$pkgbase-$pkgver/build-gtk2

  make prefix="$pkgdir"/usr install
}