summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03c5dcbc1d252e23a6c08f5f09649a782559dcc7 (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
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>

pkgname=libretro-snes9x-git
pkgver=r1396.83c82eb
pkgrel=1
pkgdesc='Super Nintendo Entertainment System core'
arch=(x86_64)
url='https://github.com/libretro/snes9x'
license=(
  custom
  GPL2
  LGPL2.1
)
groups=(libretro-unstable)
depends=(libretro-core-info)
makedepends=(git)
provides=(libretro-snes9x)
conflicts=(libretro-snes9x)
source=(libretro-snes9x::git+https://github.com/libretro/snes9x.git)
sha256sums=(SKIP)

pkgver() {
  cd libretro-snes9x

  echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd libretro-snes9x/libretro

  make
}

package() {
  cd libretro-snes9x/libretro

  install -Dm 644 snes9x_libretro.so -t "${pkgdir}"/usr/lib/libretro/
  install -Dm 644 ../LICENSE -t "${pkgdir}"/usr/share/licenses/libretro-snes9x-git/
}

# vim: ts=2 sw=2 et: