Skip to content

Instantly share code, notes, and snippets.

@Holzhaus
Created April 18, 2015 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Holzhaus/c3cca9881e35a6c3254a to your computer and use it in GitHub Desktop.
Save Holzhaus/c3cca9881e35a6c3254a to your computer and use it in GitHub Desktop.
PKGBUILD for libretro-pocketsnes-git
# Maintainer: mfussenegger
# Contributor: Jan Holthuis <holthuis dot jan at googlemail dot com>
pkgname=libretro-pocketsnes-git
pkgver=r15.ac83fb2
pkgrel=1
pkgdesc="ARM based SNES emulator for libretro"
arch=('arm' 'armv6h' 'armv7h')
url="https://github.com/libretro/pocketsnes-libretro"
license=('custom')
makedepends=('git')
conflicts=('libretro-super-git')
_gitname="pocketsnes-libretro"
source=("git+https://github.com/libretro/${_gitname}.git")
sha1sums=('SKIP')
pkgver() {
cd "$srcdir/${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build()
{
cd "$srcdir/${_gitname}"
make
}
package()
{
mkdir -p "$pkgdir/usr/lib/libretro"
install -m755 "$srcdir/${_gitname}/libretro.so" "$pkgdir/usr/lib/libretro/libretro-pocketsnes.so"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment