2024-03-16 17:51:56 +00:00
|
|
|
pkgname=powkiddy-x55-mapper
|
2024-03-25 11:42:50 +00:00
|
|
|
pkgver=1.0.1
|
2024-07-30 16:02:05 +00:00
|
|
|
pkgrel=1
|
2024-03-16 17:51:56 +00:00
|
|
|
pkgdesc="Powkiddy X55 gamepad joiner/mapper"
|
|
|
|
url="https://github.com/vognev/x55-mapper"
|
|
|
|
arch="aarch64"
|
|
|
|
license="MIT"
|
|
|
|
options="!check"
|
|
|
|
makedepends="cargo"
|
|
|
|
source="powkiddy-x55-mapper-$pkgver.tar.gz::https://github.com/vognev/x55-mapper/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir/x55-mapper-$pkgver"
|
2024-07-30 16:02:05 +00:00
|
|
|
subpackages="$pkgname-openrc"
|
2024-03-16 17:51:56 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cargo build --release --locked
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-03-25 11:42:50 +00:00
|
|
|
install -Dm644 contrib/postmarketos/99-disable-real-gamepad.rules -t "$pkgdir"/etc/udev/rules.d/
|
2024-03-16 17:51:56 +00:00
|
|
|
install -Dm755 target/release/x55-mapper -t "$pkgdir"/usr/bin/
|
|
|
|
}
|
|
|
|
|
2024-07-30 16:02:05 +00:00
|
|
|
openrc() {
|
|
|
|
install="$subpkgname.post-install $subpkgname.pre-deinstall"
|
|
|
|
default_openrc
|
|
|
|
|
|
|
|
install -Dm755 "$builddir"/contrib/postmarketos/powkiddy-x55-mapper.initd "$subpkgdir"/etc/init.d/powkiddy-x55-mapper
|
|
|
|
}
|
|
|
|
|
2024-03-16 17:51:56 +00:00
|
|
|
sha512sums="
|
2024-03-25 11:42:50 +00:00
|
|
|
ebec121a3c7b50c43feffed9082743580a90f0916c4d8e7dd832d8c21ae60b6b23ccd9c36c3b24ec13d17a8f0f50ece53d6b86b2adef8a82d841890394855f9b powkiddy-x55-mapper-1.0.1.tar.gz
|
2024-03-16 17:51:56 +00:00
|
|
|
"
|