xtrlock: work around ancient python configure script
This commit is contained in:
parent
3047617e79
commit
782161d773
|
@ -2,8 +2,7 @@
|
|||
pkgname=xtrlock
|
||||
version=3.4
|
||||
revision=2
|
||||
build_style=configure
|
||||
hostmakedepends="pkg-config python"
|
||||
build_wrksrc="src"
|
||||
makedepends="libX11-devel pam-devel"
|
||||
short_desc="PAM based X11 screen locker"
|
||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||
|
@ -12,6 +11,14 @@ homepage="https://github.com/aanatoly/xtrlock-pam"
|
|||
distfiles="https://github.com/aanatoly/xtrlock-pam/archive/${version}.tar.gz"
|
||||
checksum=dcc4b37a1ec303a99c9ef96412f6ba875f0c06355cdfdf4605a2a0a9e144c5d2
|
||||
|
||||
post_install() {
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue