25 lines
694 B
Bash
25 lines
694 B
Bash
# Template file for 'xtrlock'
|
|
pkgname=xtrlock
|
|
version=3.4
|
|
revision=2
|
|
build_wrksrc="src"
|
|
makedepends="libX11-devel pam-devel"
|
|
short_desc="PAM based X11 screen locker"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/aanatoly/xtrlock-pam"
|
|
distfiles="https://github.com/aanatoly/xtrlock-pam/archive/${version}.tar.gz"
|
|
checksum=dcc4b37a1ec303a99c9ef96412f6ba875f0c06355cdfdf4605a2a0a9e144c5d2
|
|
|
|
do_build() {
|
|
touch config.h
|
|
$CC $CFLAGS -DPROJECT_NAME="\"${pkgname}-${version}\"" \
|
|
-DPROJECT_VERSION="\"${version}\"" \
|
|
-o xtrlock-pam *.c $LDFLAGS -lX11 -lpam
|
|
}
|
|
|
|
do_install() {
|
|
vbin xtrlock-pam
|
|
ln -s xtrlock-pam ${DESTDIR}/usr/bin/xtrlock
|
|
}
|