void-packages/srcpkgs/trollock/template

24 lines
640 B
Bash

# Template file for 'trollock'
pkgname=trollock
version=4.1
revision=2
build_wrksrc="src"
makedepends="libX11-devel pam-devel"
short_desc="Xtrlock fork with PAM support"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2.0-or-later"
homepage="https://github.com/thypon/trollock"
distfiles="https://github.com/thypon/trollock/archive/v${version}.tar.gz"
checksum=3e48ef9d129e91206e79b73df03757375c785296b3193d9148d044a9f9e84229
do_build() {
touch config.h
$CC $CFLAGS -DPROJECT_NAME="\"${pkgname}-${version}\"" \
-DPROJECT_VERSION="\"${version}\"" \
-o trollock *.c $LDFLAGS -lX11 -lpam
}
do_install() {
vbin trollock
}