43 lines
1.0 KiB
Bash
43 lines
1.0 KiB
Bash
# Maintainer: Alexandre Bouvier <contact@amb.tf>
|
|
# Contributor: Oliver Jaksch <arch-aur@com-in.de>
|
|
_pkgname=libretro-cap32
|
|
# Intentionally pinned to the latest successful repository build.
|
|
_commit=4abfb8be233bec630f369379fb6c1d92d31f1c7d
|
|
pkgname=$_pkgname-git
|
|
pkgver=4.5.4.r51.g4abfb8b
|
|
pkgrel=1
|
|
epoch=1
|
|
pkgdesc="Amstrad CPC core"
|
|
arch=('aarch64' 'armv7h' 'i486' 'i686' 'pentium4' 'x86_64')
|
|
url="https://github.com/libretro/libretro-cap32"
|
|
license=('GPL-2.0-or-later')
|
|
groups=('libretro')
|
|
depends=('glibc' 'libretro-core-info')
|
|
makedepends=('git')
|
|
provides=("$_pkgname")
|
|
conflicts=("$_pkgname")
|
|
source=("$_pkgname::git+$url.git#commit=$_commit")
|
|
b2sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd $_pkgname
|
|
git describe --long --tags --abbrev=7 | sed 's/^v//;s/[^-]*-g/r&/;s/-/./g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $_pkgname
|
|
# remove hardcoded optimization flags
|
|
sed -Ei 's/-O([0123s]|fast)//' Makefile
|
|
}
|
|
|
|
build() {
|
|
cd $_pkgname
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $_pkgname
|
|
# shellcheck disable=SC2154
|
|
install -D -t "$pkgdir"/usr/lib/libretro cap32_libretro.so
|
|
}
|