summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f9b6058cb587ccfefb2eac85990fd497d929672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Harry Walker <me@harrywalker.uk>
pkgname=libfprint-ft9366
pkgver=1.94.4
pkgrel=2
pkgdesc="Proprietary driver for the Focaltech fingerprint reader 2808:a658, which is used on various ASUS Vivobooks"
arch=('x86_64')
url="https://github.com/ftfpteams/RTS5811-FT9366-fingerprint-linux-driver-with-VID-2808-and-PID-a658"
depends=('glib2>=2.56' 'libgusb>=0.3.0' 'nss>=3.13.4' 'pixman>=0.30.0')
conflicts=('libfprint')
provides=('libfprint-2.so' 'libfprint')
options=('!strip' '!emptydirs')
install=${pkgname}.install
source=("https://github.com/ftfpteams/RTS5811-FT9366-fingerprint-linux-driver-with-VID-2808-and-PID-a658/raw/refs/heads/main/libfprint-2-2_1.94.4+tod1-0ubuntu1~22.04.2_amd64_rts5811.deb" "https://github.com/ftfpteams/RTS5811-FT9366-fingerprint-linux-driver-with-VID-2808-and-PID-a658/raw/refs/heads/main/libfprint-2-2-1.94.4+tod1-FT9366_20240627.x86_64.rpm")
sha512sums=('9d8a98884ffe02c4871cac668e46038727a70fe0c0f4fbc9477a785612e6f0f567173eebaea83f78e9248a0a59a5ac5fef192546da997a6b43d6e1ba4dc90afb' '6e5bd54929c8dbcba6ce16628502ac34164c8aa72785f9d84d871c7a0c2baed2a54e957d4b46c7b5176ebe5354d3f8abebe9b8195e8115f621f47bcb5b86f894')

package(){

	# Extract package data
	tar -xI unzstd -f data.tar.zst -C "${pkgdir}"
	mkdir -p "${pkgdir}/usr/lib"
	cp usr/lib64/* "${pkgdir}/usr/lib"

	# Fix directory structure differences
	cd "${pkgdir}"

	install -D -m644 "usr/share/doc/libfprint-2-2/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	mv lib/* usr/lib; rm -rf lib
	mv usr/lib/x86_64-linux-gnu/libfprint-2.so.2 usr/lib
	rm -rf usr/lib/x86_64-linux-gnu

	getent group plugdev > /dev/null || groupadd plugdev

	cd ..

}