archpkgs/physlock-dexterlb-git/PKGBUILD
Gabriel Ebner 32a6ec828e git subrepo clone --branch=master https://aur.archlinux.org/physlock-dexterlb-git.git
subrepo:
  subdir:   "physlock-dexterlb-git"
  merged:   "05ad0d6"
upstream:
  origin:   "https://aur.archlinux.org/physlock-dexterlb-git.git"
  branch:   "master"
  commit:   "05ad0d6"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2021-09-05 14:41:07 +02:00

36 lines
1.0 KiB
Bash

# Maintainer: Cullen Ross <cullenrss@gmail.com>
pkgname=physlock-dexterlb-git
_pkgname='physlock'
pkgver=v13.r5.ge4df70c
pkgrel=1
pkgdesc="Lightweight linux console locking tool. A Fork allowing commands before and after lock"
arch=('x86_64')
license=('GPL')
url="https://github.com/DexterLB/physlock"
depends=('pam' 'systemd-libs')
makedepends=('git')
provides=('physlock')
conflicts=('physlock')
source=("${_pkgname}::git+${url}.git"
'physlock.pam')
sha512sums=('SKIP'
'51f35b2b736d8b601a6ea42c038ab0f498225ce4e392eeb35fdcec4a51a7a492a836de451a28565a27dea694a4a29ac4de7ea2c8852bba63cad58710641557fe')
pkgver() {
cd "$_pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
make PREFIX="/usr" -C "${_pkgname}"
}
package() {
install -D -m 644 physlock.pam "$pkgdir/etc/pam.d/physlock"
make DESTDIR="${pkgdir}" PREFIX="/usr" -C "${_pkgname}" install
}