summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 61b4653646083e2dee697b6a13c1719a47db3889 (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
# Maintainer: Eugene Lebedev <satanych13+dev@gmail.com>

pkgname=libretro-pcsx2-launcher-git
pkgver=r46.bc78bf9
pkgrel=1
pkgdesc="Launch Sony PlayStation 2 games through PCSX2, directly from RetroArch."
arch=('x86_64')
url="https://github.com/coldscientist/libretro-pcsx2-launcher"
license=('MIT')
conflicts=('libretro-pcsx2-launcher')
provides=('libretro-pcsx2-launcher')
depends=('pcsx2' 'libretro-core-info')
makedepends=('git')
groups=('libretro')

source=("libretro-pcsx2::git+https://github.com/coldscientist/libretro-pcsx2-launcher.git")

sha256sums=(SKIP)

pkgver() {
  cd libretro-pcsx2
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd libretro-pcsx2
  make
}

package() {
  install -Dm644 libretro-pcsx2/dolphin_launcher_libretro.so "${pkgdir}/usr/lib/libretro/pcsx2_launcher_libretro.so"
  install -Dm644 libretro-pcsx2/dolphin_launcher_libretro.info "${pkgdir}/usr/share/libretro/info/pcsx2_launcher_libretro.info"
  install -D -m644 libretro-pcsx2/LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}