Compare commits

...

8 Commits

Author SHA1 Message Date
4cfba7e5ff Update PKGBUILD: add check to prevent duplicate copy of libfpcbep.so 2024-10-25 20:51:49 +02:00
90056f5bb4 Updated PKGBUILD: removed 396.patch due to incompatibility with libfprint v1.94.8 2024-10-25 20:46:29 +02:00
f4ab557ef5 Updated PKGBUILD and .SRCINFO to use libfprint version 1.94.8 for improved kernel support 2024-10-25 20:29:00 +02:00
b3118b6010 comment out pkgver function as it is
meanningless now
2024-10-25 20:10:28 +02:00
1e8e9f3808 fix patching error by pinning the upstream
libfprint version to v1.94.6
2024-10-25 20:10:28 +02:00
85a5e99d9d update patchelf makedepends 2024-10-25 20:10:28 +02:00
55fec3bef5 update patchelf dependency 2024-10-25 20:10:28 +02:00
2ec470755a libfprint-git-fpcmoh: initial commit
This is a patched libfprint-git that have a proprietary FPC
match-on-host driver for device 10a5:9800 linked against it.
2024-10-25 20:10:28 +02:00
2 changed files with 80 additions and 0 deletions

31
.SRCINFO Normal file
View File

@ -0,0 +1,31 @@
pkgbase = libfprint-fpcmoh-git
pkgdesc = libfprint with proprietary FPC match on host device 10a5:9800 driver
pkgver = 1.94.8
pkgrel = 1
url = https://fprint.freedesktop.org/
arch = x86_64
groups = fprint
license = LGPL
makedepends = git
makedepends = meson
makedepends = gtk-doc
makedepends = gobject-introspection
makedepends = systemd
makedepends = patchelf
depends = libgusb
depends = pixman
depends = nss
depends = systemd-libs
provides = libfprint=1.94.8
provides = libfprint-2.so
provides = libfpcbep.so
conflicts = libfprint
source = git+https://gitlab.freedesktop.org/libfprint/libfprint.git#tag=v1.94.8
source = fpcbep.zip::https://download.lenovo.com/pccbbs/mobiles/r1slm01w.zip
source = https://gitlab.freedesktop.org/libfprint/libfprint/-/merge_requests/396.patch
sha256sums = SKIP
sha256sums = c7290f2a70d48f7bdd09bee985534d3511ec00d091887b07f81cf1e08f74c145
sha256sums = SKIP
pkgname = libfprint-fpcmoh-git

49
PKGBUILD Normal file
View File

@ -0,0 +1,49 @@
pkgname=libfprint-fpcmoh-git
_pkgname=libfprint
pkgver=1.94.8
pkgrel=1
pkgdesc="libfprint with proprietary FPC match on host device 10a5:9800 driver"
url="https://fprint.freedesktop.org/"
arch=(x86_64)
license=(LGPL)
depends=(libgusb pixman nss systemd-libs)
makedepends=(git meson gtk-doc gobject-introspection systemd patchelf)
provides=("libfprint=$pkgver" libfprint-2.so libfpcbep.so)
conflicts=(libfprint)
groups=(fprint)
source=(
"git+https://gitlab.freedesktop.org/libfprint/libfprint.git#tag=v1.94.8"
"fpcbep.zip::https://download.lenovo.com/pccbbs/mobiles/r1slm01w.zip"
)
sha256sums=(
'SKIP'
'c7290f2a70d48f7bdd09bee985534d3511ec00d091887b07f81cf1e08f74c145'
)
prepare() {
libfpcbep_path=$(find . -name 'libfpcbep.so')
# Kopíruje pouze pokud soubor neexistuje v cíli
if [ ! -e "$_pkgname/libfpcbep.so" ]; then
cp -f $libfpcbep_path $_pkgname
fi
cd $_pkgname
# patch meson.build
# use '+' as sed delimiter
sed -ibak "s+find_library[(]'fpcbep', required: true[)]+find_library('fpcbep', required: true, dirs: \'$(pwd)\')+g" ./meson.build
}
build() {
arch-meson $_pkgname build
meson compile -C build
}
package() {
DESTDIR="$pkgdir" meson install -C build
install -D $srcdir/$_pkgname/libfpcbep.so $pkgdir/usr/lib/libfpcbep.so
install -Dm644 $srcdir/FPC_driver_linux_libfprint/install_libfprint/lib/udev/rules.d/60-libfprint-2-device-fpc.rules \
$pkgdir/usr/lib/udev/rules.d/60-libfprint-2-device-fpc.rules
cd $pkgdir/usr/lib
libfpcbep_needed=$(ldd libfprint-2.so | grep libfpcbep | sed 's/[(].*[)]//g')
patchelf --replace-needed $libfpcbep_needed libfpcbep.so libfprint-2.so
}