Files
omarchy-pkgs/pkgbuilds/retroarch-joypad-autoconfig-git/PKGBUILD
T
Marcelo Alcantara 59d557ad5e Pin retroarch-joypad-autoconfig-git to a commit
The recipe fetched the branch tip, so a rebuild on another architecture
could package a different tree than the one already published. Pin the
source to a commit and set pkgver to what that commit describes
(1.22.0.r96.g0331510, as an aarch64 build of it reports); bump both
together from now on.
2026-09-02 23:15:55 +10:00

39 lines
1.1 KiB
Bash

# Maintainer: Alexandre Bouvier <contact@amb.tf>
_pkgname=retroarch-joypad-autoconfig
# Pinned so every architecture packages the same tree and a rebuild of the
# same pkgver reproduces the same contents; bump both together.
_commit=033151045d378b64e712a92592467800d7924227
pkgname=$_pkgname-git
pkgver=1.22.0.r96.g0331510
pkgrel=1
pkgdesc="RetroArch joypad autoconfig files"
arch=('any')
url="https://github.com/libretro/retroarch-joypad-autoconfig"
license=('MIT')
groups=('libretro')
makedepends=('git')
optdepends=('retroarch')
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 non-linux drivers
rm -r dinput mfi qnx xinput
}
package() {
cd $_pkgname
# shellcheck disable=SC2154
find . -iname '*.cfg' -type f -exec install -Dm644 {} "$pkgdir"/usr/share/libretro/autoconfig/{} \;
install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname README.md retropad_layout.png
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname COPYING
}