# Maintainer: Oliver Jaksch pkgname=libretro-handy-git pkgver=93.b5de071 pkgrel=1 pkgdesc="libretro implementation of Handy. (Atari Lynx)" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') url="https://github.com/libretro/libretro-handy" license=('GPL3') groups=('libretro') depends=('zlib') makedepends=('git') _libname=handy_libretro _gitname=libretro-handy source=("git+https://github.com/libretro/${_gitname}.git" "https://raw.github.com/libretro/libretro-super/master/dist/info/${_libname}.info") sha256sums=('SKIP' 'SKIP') pkgver() { cd "${_gitname}" echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) } build() { cd "${_gitname}" make } package() { install -Dm644 "${_gitname}/${_libname}.so" "${pkgdir}/usr/lib/libretro/${_libname}.so" install -Dm644 "${_libname}.info" "${pkgdir}/usr/share/libretro/info/${_libname}.info" }