Last active
          June 9, 2025 07:17 
        
      - 
      
- 
        Save Mnkai/b755df1452c38eaf9af12636844e61da to your computer and use it in GitHub Desktop. 
    libfprint focaltech 2808:0752
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | post_install() { | |
| echo "To use your fingerprint sensor, ensure your user is part of the \`plugdev\` group. You can add your user with the command \`usermod -aG plugdev <username>\`." | |
| if [ "$1" = "configure" -o "$1" = "upgrade" ] && command -V udevadm >/dev/null 2>&1; then | |
| # apply udev rules at package installation, see | |
| # <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683863#27> | |
| # adds stuff there | |
| udevadm trigger --action=add --attr-match=idVendor=2808 --attr-match=idProduct=0752 | |
| fi | |
| } | |
| post_upgrade() { | |
| post_install | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Adapted from original PKGBUILD by Harry Walker <[email protected]> | |
| pkgname=libfprint-focaltech | |
| pkgver=0.1 | |
| pkgrel=1 | |
| pkgdesc="Proprietary driver for the Focaltech fingerprint reader" | |
| arch=('x86_64') | |
| url="https://github.com/ftfpteams/focaltech-linux-fingerprint-driver" | |
| 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/focaltech-linux-fingerprint-driver/raw/refs/heads/main/Fedora_Redhat/libfprint-2-2_1.94.4+tod1_suse_all_x64_20250219.install") | |
| sha512sums=('SKIP') | |
| package(){ | |
| # Extract package data | |
| sed "1,/^main \$@/d" libfprint-2-2_1.94.4+tod1_suse_all_x64_20250219.install > libfprint.tar.gz | |
| mkdir temp | |
| tar -x -f libfprint.tar.gz -C "temp" | |
| mkdir -p "${pkgdir}/usr/lib" | |
| mv temp/usr/lib64/libfprint-2.so.2.0.0 "${pkgdir}/usr/lib/." | |
| cd "${pkgdir}/usr/lib" | |
| ln -s libfprint-2.so.2.0.0 libfprint-2.so.2 | |
| ln -s libfprint-2.so.2.0.0 libfprint-2.so | |
| chmod +x libfprint-2.so.2.0.0 | |
| getent group plugdev > /dev/null || groupadd plugdev | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment