summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb47113f4c3cfaf592c96c1e9812dcec91698336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pkgname=fancylock-bin
pkgver=0.0.9
pkgrel=1
arch=('x86_64')
url="https://github.com/tuxx/fancylock"
license=('MIT')
depends=('mpv' 'pam')
provides=('fancylock')
options=('!debug')
conflicts=('fancylock')

source=(
  "${pkgname}-${pkgver}.tar.gz::https://github.com/tuxx/fancylock/releases/download/v${pkgver}/fancylock-linux-amd64.tar.gz"
  "https://raw.githubusercontent.com/tuxx/fancylock/refs/heads/master/pam.d/fancylock"
)

sha256sums=('SKIP' 'SKIP')

prepare() {
  # Remove any old cached tarball with a generic name that could be outdated
  rm -f "${srcdir}/fancylock-linux-amd64.tar.gz"
}

package() {
  install -Dm755 fancylock-linux-amd64 "$pkgdir/usr/bin/fancylock"
  install -Dm644 fancylock "$pkgdir/etc/pam.d/fancylock"
}