summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 74f42f96e4d53d9220330765caa01859b3afe97a (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
# $Id$
# Maintainer: Mikuro Kagamine <mikurok@forgecrushing.com>

pkgbase=libretro-beetle-psx-git
pkgname=('libretro-beetle-psx-git' 'libretro-beetle-psx-hw-git')
pkgver=1859.8a0e087
pkgrel=1
pkgdesc='Sony PlayStation core'
arch=('x86_64' 'i686')
url='https://github.com/libretro/beetle-psx-libretro'
license=('GPL2')
groups=('libretro')
depends=('gcc-libs' 'glibc' 'libretro-core-info')
makedepends=('git' 'libgl' 'mesa' 'vulkan-icd-loader')
source=("libretro-beetle-psx::git+https://github.com/libretro/beetle-psx-libretro.git")
sha256sums=('SKIP')
replaces=('libretro-mednafen-psx-git' 'libretro-mednafen-psx-hw-git')
conflicts=('libretro-mednafen-psx-git' 'libretro-mednafen-psx-hw-git')

pkgver() {
	cd libretro-beetle-psx
	echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
	cd libretro-beetle-psx
	make
	cp mednafen_psx_libretro.so "${srcdir}"/
	make clean
	make HAVE_HW=1
	cp mednafen_psx_hw_libretro.so "${srcdir}"/
}

package_libretro-beetle-psx-git()
{
	conflicts=('libretro-beetle-psx')
	provides=('libretro-beetle-psx')
	
	install -Dm 644 "${srcdir}"/mednafen_psx_libretro.so -t "${pkgdir}"/usr/lib/libretro/
}

package_libretro-beetle-psx-hw-git()
{
	conflicts=('libretro-beetle-psx-hw')
	provides=('libretro-beetle-psx-hw')
	depends+=('libgl')
	
	install -Dm 644 "${srcdir}"/mednafen_psx_hw_libretro.so -t "${pkgdir}"/usr/lib/libretro/
}