Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 7d360f4

Browse files
author
Tuxx
committed
Updated arch aur package to install pam.d file
1 parent 73a3785 commit 7d360f4

File tree

2 files changed

+21
-28
lines changed

2 files changed

+21
-28
lines changed
Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
pkgbase = fancylock-bin
2-
pkgdesc = A media-playing screen locker (precompiled binary)
3-
pkgver = @VERSION@
4-
pkgrel = 1
5-
url = https://github.com/tuxx/fancylock
6-
arch = x86_64
7-
license = MIT
8-
depends = mpv
9-
depends = pam
10-
conflicts = fancylock
11-
provides = fancylock
12-
source = https://github.com/tuxx/fancylock/releases/download/v@VERSION@/fancylock-linux-amd64.tar.gz
13-
sha256sums = SKIP
14-
options = !debug
2+
pkgdesc = A media-playing screen locker (precompiled binary)
3+
pkgver = @VERSION@
4+
pkgrel = 1
5+
url = https://github.com/tuxx/fancylock
6+
arch = x86_64
7+
license = MIT
8+
depends = mpv
9+
depends = pam
10+
conflicts = fancylock
11+
provides = fancylock
12+
source = https://github.com/tuxx/fancylock/releases/download/v@VERSION@/fancylock-linux-amd64.tar.gz
13+
source = https://raw.githubusercontent.com/tuxx/fancylock/refs/heads/master/pam.d/fancylock
14+
sha256sums = SKIP
15+
sha256sums = SKIP
16+
options = !debug
1517

1618
pkgname = fancylock-bin

packages/aur/fancylock-bin/PKGBUILD.template

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,13 @@ depends=('mpv' 'pam')
88
provides=('fancylock')
99
options=('!debug')
1010
conflicts=('fancylock')
11-
source=("https://github.com/tuxx/fancylock/releases/download/v${pkgver}/fancylock-linux-amd64.tar.gz")
12-
sha256sums=('SKIP')
11+
source=(
12+
"https://github.com/tuxx/fancylock/releases/download/v${pkgver}/fancylock-linux-amd64.tar.gz"
13+
"https://raw.githubusercontent.com/tuxx/fancylock/refs/heads/master/pam.d/fancylock"
14+
)
15+
sha256sums=('SKIP' 'SKIP')
1316

1417
package() {
1518
install -Dm755 fancylock-linux-amd64 "$pkgdir/usr/bin/fancylock"
16-
if [ ! -f /etc/pam.d/fancylock ]; then
17-
install -d "$pkgdir/etc/pam.d"
18-
cat > "$pkgdir/etc/pam.d/fancylock" <<EOF
19-
#%PAM-1.0
20-
# /etc/pam.d/fancylock - PAM configuration for fancylock screen locker
21-
auth required pam_env.so
22-
auth required pam_unix.so try_first_pass
23-
account required pam_nologin.so
24-
account required pam_unix.so
25-
session required pam_limits.so
26-
session required pam_unix.so
27-
EOF
28-
fi
19+
install -Dm644 fancylock "$pkgdir/etc/pam.d/fancylock"
2920
}

0 commit comments

Comments
 (0)