name=i3lock version=2.9 update_url="https://i3wm.org/$name/" define_option 'pam: Use PAM for authentication' dlextract "https://i3wm.org/$name/$name-$version.tar.bz2" \ '3d0038021778f3178192f566dc87a931' extrafile "$name-$version-no-composite.patch" option !pam extrafile "$name-$version-no-pam.patch" header_end cd "$name-$version" # Give user the option to skip the code that tries to cover composited notifications, # since it breaks with some compositors. # See: https://github.com/i3/i3lock/issues/128 patch -p0 -i "../$name-$version-no-composite.patch" option !pam patch -p0 -i "../$name-$version-no-pam.patch" # Fix install directories sed -i -e "/\$(INSTALL)/s/bin/$(safe_sed "$dir_bindir")/" Makefile make install \ PREFIX="/$dir_prefix" \ SYSCONFDIR="/$dir_sysconfdir" \ DESTDIR="$dir_install" # Install the manpage install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/man1/" "$name.1" # If not using PAM, we need suid to hash the user's password, as well as make sure the locker isn't killed by the kernel. # Don't worry, the locker drops privileges back to your user as soon as possible. option !pam chmod 4711 "$dir_install/$dir_prefix/$dir_bindir/$name" # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: