wok view xlockmore/receipt @ rev 25088

modified recipe for lightdm
author Hans-G?nter Theisgen
date Sat Jun 18 09:31:48 2022 +0100 (2022-06-18)
parents 535c806240cc
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xlockmore"
4 VERSION="5.56"
5 CATEGORY="utilities"
6 SHORT_DESC="X Window System Lock Screen."
7 MAINTAINER="rocky@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://sillycycle.com/xlockmore.html"
11 WGET_URL="http://sillycycle.com/xlock/recent-releases/$TARBALL"
13 DEPENDS="xorg-libX11 freetype freetype1"
14 BUILD_DEPENDS="xorg-libXdmcp-dev xorg-libXpm-dev xorg-libX11-dev \
15 xorg-libXt-dev openmotif-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|__GNUC_MINOR__ >= 4|__GNUC_MINOR__ >= 7|' modes/strange.c
28 ./configure --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make &&
33 mkdir -p $DESTDIR/usr/share/X11/app-defaults/ \
34 $DESTDIR/usr/bin
35 cp -f xlock/xlock $DESTDIR/usr/bin/
36 cp -f xlock/XLock.ad $DESTDIR/usr/share/X11/app-defaults/XLock
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs
43 cp -a $install/usr $fs
44 }
46 post_install()
47 {
48 chmod u+s "$1/usr/bin/xlock"
49 }