summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 127cb4a08ca5c1fe7e412a99a4c14d55fb176d17 (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
59
60
61
62
63
# Maintainer: Oliver Jaksch <arch-aur@com-in.de>

pkgname=libretro-ppsspp-git
pkgver=17174.e1bb9da
pkgrel=2
pkgdesc="libretro implementation of PPSSPP (PlayStation Portable/PSP)"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://github.com/libretro/libretro-ppsspp"
license=('GPL')
groups=('libretro')
depends=('zlib' 'libgl')
makedepends=('git')

_libname=ppsspp_libretro
_gitname=libretro-ppsspp
source=("git+https://github.com/libretro/${_gitname}.git"
	"git+https://github.com/hrydgard/minidx9.git"
	"git+https://github.com/libretro/ppsspp-ffmpeg"
	"git+https://github.com/hrydgard/ppsspp-lang"
	"git+https://github.com/libretro/ppsspp-native"
	"git+https://github.com/hrydgard/pspautotests"
	"git+https://github.com/hrydgard/ppsspp-redist"
	"https://raw.github.com/libretro/libretro-super/master/dist/info/ppsspp_libretro.info"
	)
sha256sums=('SKIP'
	'SKIP'
	'SKIP'
	'SKIP'
	'SKIP'
	'SKIP'
	'SKIP'
	'SKIP'
	)

pkgver() {
  cd "${_gitname}"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

prepare() {
  cd "${_gitname}"

  git submodule init

  git config submodule.dx9sdk.url "${srcdir}/minidx9"
  git config submodule.ffmpeg.url "${srcdir}/ppsspp-ffmpeg"
  git config submodule.lang.url "${srcdir}/ppsspp-lang"
  git config submodule.native.url "${srcdir}/ppsspp-native"
  git config submodule.pspautotests.url "${srcdir}/pspautotests"
  git config submodule.redist.url "${srcdir}/ppsspp-redist"

  git submodule update
}

build() {
  cd "${_gitname}/libretro"
  make
}

package() {
  install -Dm644 "${_gitname}/libretro/${_libname}.so" "${pkgdir}/usr/lib/libretro/${_libname}.so"
  install -Dm644 "${_libname}.info" "${pkgdir}/usr/share/libretro/info/${_libname}.info"
}