wok-current view xscreensaver/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 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 DEPENDS="gdk-pixbuf-xlib"
15 BUILD_DEPENDS="bc gdk-pixbuf-dev gdk-pixbuf-xlib-dev gtk+-dev
16 jpeg-dev libglade-dev libxml2-dev mesa-dev
17 xorg-libX11-dev xorg-libXext-dev xorg-libXi-dev
18 xorg-libXinerama-dev xorg-libXmu-dev xorg-libXpm-dev
19 xorg-libXrandr-dev xorg-libXt-dev xorg-libXxf86vm-dev"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://en.wikipedia.org/wiki/XScreenSaver 2>/dev/null | \
25 sed '/Stable release/!d;s|.*">||'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 #export LDFLAGS="$LDFLAGS $(pkg-config --libs gtk+-2.0 gdk-pixbuf-xlib-2.0 gl)"
33 export CFLAGS="$CFLAGS -std=gnu89"
35 # Drop popup about version is old
36 patch -p1 < $stuff/xscreensaver.no.expiration.date.diff
37 # Patch for shadow
38 patch -p1 < $stuff/xscreensaver.setuid.diff
40 ./configure \
41 --with-shadow \
42 --with-jpeg \
43 --with-gl \
44 $CONFIGURE_ARGS &&
45 make &&
46 make install_prefix=$DESTDIR install
48 # Need for password unlock
49 chmod 2751 $install/usr/bin/xscreensaver
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 cp -a $install/* $fs
56 }