Patch libfprint

This commit is contained in:
Ryan Hughes committed 2026-06-12 01:28:24 -04:00
1 parent 63b1d9540a
commit d3c4d828f1
4 files changed
+220 -12

No files matched your search

+14 -11
View File
@@ -1,20 +1,20 @@
# Maintainer: Mikko Nyman <mikko@nyman.xyz>
# Based on the Arch libfprint package by Jan Alexander Steffens (heftig).
#
# Tracks libfprint master to expose the focaltech_moc driver for ASUS
# laptops with FocalTech MOC (Match-on-Chip) fingerprint sensors. The
# driver is in master under LGPL but mainline libfprint releases (1.94.x)
# do not yet ship it. Carries one extra patch adding USB ID 2808:a97a
# (FocalTech FT9349 ESS, ASUS ExpertBook Ultra B9406CAA) to the driver's
# id_table[]; the upstream MR is in flight.
# Tracks libfprint master to expose the focaltech_moc driver updates for
# ASUS laptops with FocalTech MOC (Match-on-Chip) fingerprint sensors.
# Mainline libfprint releases (1.94.x) do not yet ship the latest device
# IDs, including USB ID 2808:a97a (FocalTech FT9349 ESS, ASUS ExpertBook
# Ultra B9406CAA). The patch for 2808:a97a has landed upstream; keep the
# fallback patch only for older refs where the ID is still missing.
#
# Once the patch lands and Arch's libfprint catches up, this package can
# be removed from the OPR repo and Omarchy can install stock libfprint.
# Once Arch's libfprint catches up, this package can be removed from the
# OPR repo and Omarchy can install stock libfprint.
pkgname=libfprint-git
pkgver=1.94.10.r12.gd79f157
pkgrel=1
pkgdesc="Library for fingerprint readers (libfprint master with FocalTech FT9349 PID 0xa97a patch)"
pkgrel=1.1
pkgdesc="Library for fingerprint readers (libfprint master with FocalTech MOC updates)"
url="https://fprint.freedesktop.org/"
arch=(x86_64)
license=(LGPL-2.1-or-later)
@@ -64,7 +64,10 @@ pkgver() {
prepare() {
cd libfprint
patch -p1 < "$srcdir/focaltech_moc-add-pid-0xA97A.patch"
if ! grep -qi 'pid = 0xa97a' libfprint/drivers/focaltech_moc/focaltech_moc.c; then
patch -p1 < "$srcdir/focaltech_moc-add-pid-0xA97A.patch"
fi
}
build() {