From 2d179f265d85bb008bb5acce31ce86759aa58124 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 5 Jan 2025 22:56:27 +0300 Subject: [PATCH] init --- README.md | 1 + alr.sh | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e398e2a --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +libfprint2-focaltech \ No newline at end of file diff --git a/alr.sh b/alr.sh index 09cfdff..02af421 100644 --- a/alr.sh +++ b/alr.sh @@ -1 +1,51 @@ -# Describe your package here \ No newline at end of file +name=libfprint2-focaltech +version=1.94.4 +release=1 +maintainer="Maxim Slipenko " +desc="libfprint2 with FocalTech support" +arch=("amd64") +homepage="https://github.com/ftfpteams/focaltech-linux-fingerprint-driver" +license=( + "custom" +) +replaces=( + libfprint2 +) +provides=() + +build_deps=( + # for /usr/lib/rpm/lib.req only + libgudev + libgusb + libnss + libpixman + libgio +) + +_sources_commit="6ca46535a3ed76c831e5681f04851a21b821c902" +_sources_base_url="https://raw.githubusercontent.com/ftfpteams/focaltech-linux-fingerprint-driver/${_sources_commit}" +sources_amd64=( + "${_sources_base_url}/Fedora_Redhat/libfprint-2-2_1.94.4+tod1_redhat_all_x64_20241011.install?~name=${name}-${version}.install" + "https://git.altlinux.org/tasks/364033/build/100/x86_64/rpms/libfprint2-1.94.8-alt3.x86_64.rpm?~name=${name}-${version}.rpm" +) + +checksums_amd64=( + "sha256:6a26c1786e047b033fa91cdd1c5e578efe2df62b613fdb7960e4a1157bb2e28b" + "sha256:65c799b1b095196f41544a559355181121365bd82a093094c6d1496c221b20de" +) + +auto_req=1 +auto_prov=1 + +prepare() { + cd "$srcdir" + rpm2cpio ${name}-${version}.rpm | cpio -idmv + + sed -i 's|sudo tar xf "\${file_name}" -C /|tar xf "${file_name}" -C .|' ${name}-${version}.install + chmod +x ./${name}-${version}.install + ./${name}-${version}.install +} + +package() { + mv $srcdir/usr $pkgdir/usr +} \ No newline at end of file