diff options
author | rmb122 | 2023-05-17 19:44:34 +0800 |
---|---|---|
committer | rmb122 | 2023-05-17 19:45:48 +0800 |
commit | 0fbbdb7ecb98c9f2341dc277f674ce795d881630 (patch) | |
tree | 934eab4e46582950d312a28a768924efe1613955 /PKGBUILD | |
download | aur-xsecurelock-no-mouse-motion.tar.gz |
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b1174bd0fda3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: rmb122 https://github.com/rmb122 + +_pkgname=xsecurelock +pkgname=xsecurelock-no-mouse-motion +pkgver=1.8.0 +pkgrel=1 +pkgdesc="X11 screen lock utility with security in mind, patched with ignore mouse motion option" +arch=('x86_64') +url="https://github.com/google/xsecurelock" +license=('APACHE') +depends=('pam' 'libxcomposite' 'libxmu' 'libxft' 'libxrandr' 'libxss') +makedepends=('xorg-xset') +optdepends=('xorg-xset: for the saver_blank module') +optdepends=('mplayer: for the saver_mplayer module'\ + 'mpv: for the saver_mpv module'\ + 'imagemagick: for the auth_pamtester module'\ + 'pamtester: for the auth_pamtester module'\ + 'xorg-xset: for the saver_blank module'\ + 'xscreensaver: for the saver_xscreensaver module') +provides=('xsecurelock') +conflicts=('xsecurelock') +source=("https://github.com/google/xsecurelock/archive/v${pkgver}.tar.gz") +sha512sums=('c98aa9e5a5574a90a8b0cb8d41b67489c34689b489b9a079aa16493435d9dafdc090ac2e8ba5fa766d6ce2b3ee8ff12c09caa9eb851359be315f9d14563c8556') +install=$pkgname.install + +prepare() { + cd "$_pkgname-$pkgver" + patch --forward --strip=1 --input="${startdir}/disable_motion.patch" +} + +build() { + cd "${_pkgname}-${pkgver}" + sh autogen.sh + ./configure --prefix=/usr \ + --libexecdir=/usr/lib \ + --with-pam-service-name=system-auth + make GIT_VERSION="${pkgver}" +} + +package() { + cd "${_pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} + +# vim:set ts=4 sw=4 et: |