wok view xlockmore/receipt @ rev 24976

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 06 11:04:25 2022 +0000 (24 months ago)
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 }