summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29a378c6ed3e004a7de0a0933235afa2922fc31e (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
# Maintainer: Daniel Menelkir <menelkir@itroll.org>
# Old Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Oliver Jaksch <arch-aur@com-in.de>

pkgname=libretro-beetle-wswan-git
pkgver=r825.79e8d48
pkgrel=1
pkgdesc='WonderSwan core'
arch=('x86_64')
url='https://github.com/libretro/beetle-wswan-libretro'
license=('GPL2')
groups=('libretro-unstable')
depends=('libretro-core-info')
makedepends=('git')
provides=('libretro-beetle-wswan' 'libretro-mednafen-wswan-git')
conflicts=('libretro-beetle-wswan' 'libretro-mednafen-wswan-git')
source=("libretro-beetle-wswan::git+https://github.com/libretro/beetle-wswan-libretro.git")
sha256sums=('SKIP')

pkgver() {
  cd libretro-beetle-wswan

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

build() {
  make -C libretro-beetle-wswan
}

package() {
  install -Dm 644 libretro-beetle-wswan/mednafen_wswan_libretro.so -t "${pkgdir}"/usr/lib/libretro/
}