trollock: work around ancient python configure script

This commit is contained in:
classabbyamp 2023-10-07 18:23:47 -04:00 committed by classabbyamp
parent 782161d773
commit 20e0054ba2

View file

@ -2,8 +2,7 @@
pkgname=trollock
version=4.1
revision=2
build_style=gnu-configure
hostmakedepends="python pkg-config"
build_wrksrc="src"
makedepends="libX11-devel pam-devel"
short_desc="Xtrlock fork with PAM support"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
@ -12,6 +11,13 @@ homepage="https://github.com/thypon/trollock"
distfiles="https://github.com/thypon/trollock/archive/v${version}.tar.gz"
checksum=3e48ef9d129e91206e79b73df03757375c785296b3193d9148d044a9f9e84229
do_configure() {
./configure
do_build() {
touch config.h
$CC $CFLAGS -DPROJECT_NAME="\"${pkgname}-${version}\"" \
-DPROJECT_VERSION="\"${version}\"" \
-o trollock *.c $LDFLAGS -lX11 -lpam
}
do_install() {
vbin trollock
}