diff options
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 49 |
3 files changed, 33 insertions, 30 deletions
@@ -1,22 +1,16 @@ -# Generated by mksrcinfo v8 -# Fri Dec 22 15:06:45 UTC 2017 pkgbase = libretro-nestopia-git pkgdesc = Nintendo Entertainment System core - pkgver = r851.e4b6750 + pkgver = r109.3dcbec4 pkgrel = 1 url = https://github.com/libretro/nestopia arch = i686 arch = x86_64 - groups = libretro-unstable license = GPL2 makedepends = git - depends = gcc-libs - depends = glibc depends = libretro-core-info - provides = libretro-nestopia + provides = libretro-nestopia=109 conflicts = libretro-nestopia source = libretro-nestopia::git+https://github.com/libretro/nestopia.git sha256sums = SKIP pkgname = libretro-nestopia-git - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..018a3de08144 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore @@ -1,38 +1,43 @@ -# Maintainer: Maxime Gauduin <alucryd@archlinux.org> +# Maintainer: +# Contributor: Maxime Gauduin <alucryd@archlinux.org> -pkgname=libretro-nestopia-git -pkgver=r851.e4b6750 +_pkgname="libretro-nestopia" +pkgname="$_pkgname-git" +pkgver=r109.3dcbec4 pkgrel=1 pkgdesc='Nintendo Entertainment System core' -arch=('i686' 'x86_64') url='https://github.com/libretro/nestopia' license=('GPL2') -groups=('libretro-unstable') -depends=('gcc-libs' 'glibc' 'libretro-core-info') -makedepends=('git') -provides=('libretro-nestopia') -conflicts=('libretro-nestopia') -source=('libretro-nestopia::git+https://github.com/libretro/nestopia.git') +arch=('i686' 'x86_64') + +depends=( + 'libretro-core-info' +) +makedepends=( + 'git' +) + +_pkgver="${pkgver#r}" +provides=("$_pkgname=${_pkgver%.*}") +conflicts=("$_pkgname") + +_pkgsrc="$_pkgname" +source=("$_pkgsrc"::"git+$url.git") sha256sums=('SKIP') pkgver() { - cd libretro-nestopia - - echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" + cd "$_pkgsrc" + printf 'r%s.%s' \ + "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short HEAD)" } build() { - cd libretro-nestopia/libretro - - export CXXFLAGS="$CXXFLAGS -fpermissive" - + cd "$_pkgsrc/libretro" make } package() { - cd libretro-nestopia/libretro - - install -Dm 644 nestopia_libretro.so -t "${pkgdir}"/usr/lib/libretro/ + cd "$_pkgsrc/libretro" + install -Dm644 nestopia_libretro.so -t "${pkgdir:?}/usr/lib/libretro/" } - -# vim: ts=2 sw=2 et: |