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

pkgname=libretro-snes9x-git
pkgver=r695.5d60ecd
pkgrel=1
pkgdesc='Super Nintendo Entertainment System core'
arch=('i686' 'x86_64')
url='https://github.com/libretro/snes9x'
license=('custom' 'GPL2' 'LGPL2.1')
groups=('libretro-unstable')
depends=('gcc-libs' 'glibc' '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 ../docs/snes9x-license.txt -t "${pkgdir}"/usr/share/licenses/libretro-snes9x-git/
}

# vim: ts=2 sw=2 et: