wok view xscreensaver/receipt @ rev 25629

Fix xscreensaver and up to 5.45 (thanks Pat)
author Stanislas Leduc <shann@slitaz.org>
date Tue Dec 19 20:23:40 2023 +0100 (4 months ago)
parents 6a41c533bf52
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xscreensaver"
4 VERSION="5.45"
5 CATEGORY="x-window"
6 SHORT_DESC="A collection of free screen savers."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://www.jwz.org/xscreensaver/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://sources.buildroot.net/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="bc gdk-pixbuf-dev gtk+-dev jpeg-dev
15 libglade-dev libxml2-dev mesa-dev xorg-libX11-dev
16 xorg-libXext-dev xorg-libXi-dev xorg-libXinerama-dev
17 xorg-libXmu-dev xorg-libXpm-dev xorg-libXrandr-dev
18 xorg-libXt-dev xorg-libXxf86vm-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://en.wikipedia.org/wiki/XScreenSaver 2>/dev/null | \
24 sed '/Stable release/!d;s|.*">||'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Thanks Slackware for patch and have work xscreensaver
31 export CFLAGS="$CFLAGS -std=gnu89"
33 # Drop popup about version is old
34 patch -p1 < $stuff/xscreensaver.no.expiration.date.diff
35 # Patch for shadow
36 patch -p1 < $stuff/xscreensaver.setuid.diff
38 ./configure \
39 --with-shadow \
40 --with-jpeg \
41 --with-gl \
42 $CONFIGURE_ARGS &&
43 make &&
44 make install_prefix=$DESTDIR install
46 # Need for password unlock
47 chmod 2751 $install/usr/bin/xscreensaver
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 cp -a $install/* $fs
54 }