This repository has been archived on 2026-10-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
omarchy-pkgs/pkgbuilds/libfprint-git/.omarchy/patches/0002-skip-merged-focaltech-pid.patch
T
2026-06-12 01:28:24 -04:00

46 lines
2.0 KiB
Diff

diff -ruN a/PKGBUILD b/PKGBUILD
--- a/PKGBUILD 2026-06-12 01:10:32.091938118 -0400
+++ b/PKGBUILD 2026-06-12 01:10:32.094596080 -0400
@@ -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)"
+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 @@
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() {