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

Commit 6183ce0

Browse files
author
Tuxx
committed
Arch package should not install old cached versions anymore.
1 parent 7d360f4 commit 6183ce0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

packages/aur/fancylock-bin/.SRCINFO.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pkgbase = fancylock-bin
99
depends = pam
1010
conflicts = fancylock
1111
provides = fancylock
12-
source = https://github.com/tuxx/fancylock/releases/download/v@VERSION@/fancylock-linux-amd64.tar.gz
12+
source = fancylock-bin-@[email protected]::https://github.com/tuxx/fancylock/releases/download/v@VERSION@/fancylock-linux-amd64.tar.gz
1313
source = https://raw.githubusercontent.com/tuxx/fancylock/refs/heads/master/pam.d/fancylock
1414
sha256sums = SKIP
1515
sha256sums = SKIP

packages/aur/fancylock-bin/PKGBUILD.template

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,19 @@ depends=('mpv' 'pam')
88
provides=('fancylock')
99
options=('!debug')
1010
conflicts=('fancylock')
11+
1112
source=(
12-
"https://github.com/tuxx/fancylock/releases/download/v${pkgver}/fancylock-linux-amd64.tar.gz"
13+
"${pkgname}-${pkgver}.tar.gz::https://github.com/tuxx/fancylock/releases/download/v${pkgver}/fancylock-linux-amd64.tar.gz"
1314
"https://raw.githubusercontent.com/tuxx/fancylock/refs/heads/master/pam.d/fancylock"
1415
)
16+
1517
sha256sums=('SKIP' 'SKIP')
1618

19+
prepare() {
20+
# Remove any old cached tarball with a generic name that could be outdated
21+
rm -f "${srcdir}/fancylock-linux-amd64.tar.gz"
22+
}
23+
1724
package() {
1825
install -Dm755 fancylock-linux-amd64 "$pkgdir/usr/bin/fancylock"
1926
install -Dm644 fancylock "$pkgdir/etc/pam.d/fancylock"

0 commit comments

Comments
 (0)