2007-04-10 22:22:44 +02:00
|
|
|
# Description: A screen saver and locker daemon for xorg.
|
2020-07-12 20:48:11 +02:00
|
|
|
# URL: https://www.jwz.org/xscreensaver/
|
2014-11-10 13:28:07 +01:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-06-27 22:20:04 +02:00
|
|
|
# Depends on: bc fortune gdk-pixbuf-xlib giflib glu intltool libglade linux-pam xorg-libxmu xorg-libxi
|
2007-04-10 22:22:44 +02:00
|
|
|
|
|
|
|
name=xscreensaver
|
2021-10-14 06:21:15 +02:00
|
|
|
version=6.02
|
2007-04-10 22:22:44 +02:00
|
|
|
release=1
|
2020-02-09 13:48:13 +01:00
|
|
|
source=(https://www.jwz.org/$name/$name-$version.tar.gz
|
2019-02-03 07:49:45 +01:00
|
|
|
$name.pam)
|
2007-04-10 22:22:44 +02:00
|
|
|
|
2021-06-27 22:20:04 +02:00
|
|
|
unpack_source() {
|
|
|
|
for file in ${source[@]}; do
|
|
|
|
case ${file##*/} in
|
|
|
|
$name-$version.tar.gz)
|
|
|
|
tar xfvz $(get_filename $file) -C $SRC ;;
|
|
|
|
*)
|
|
|
|
cp $(get_filename $file) $SRC ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2007-04-10 22:22:44 +02:00
|
|
|
build() {
|
2008-08-16 13:36:37 +02:00
|
|
|
cd $name-$version
|
2014-11-19 02:42:44 +01:00
|
|
|
|
2007-04-10 22:22:44 +02:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
2008-03-04 16:13:46 +01:00
|
|
|
--with-x-app-defaults='/etc/X11/app-defaults' \
|
2007-04-10 22:22:44 +02:00
|
|
|
--enable-locking \
|
2007-11-14 19:29:54 +01:00
|
|
|
--enable-root-passwd \
|
2021-02-21 14:46:28 +01:00
|
|
|
--disable-nls \
|
2007-11-14 19:29:54 +01:00
|
|
|
--with-dpms-ext \
|
|
|
|
--with-xinerama-ext \
|
|
|
|
--with-xshm-ext \
|
|
|
|
--with-proc-interrupts \
|
|
|
|
--with-shadow \
|
2007-07-19 03:51:54 +02:00
|
|
|
--with-pixbuf \
|
|
|
|
--with-jpeg \
|
2007-04-10 22:22:44 +02:00
|
|
|
--without-motif \
|
|
|
|
--without-gle \
|
|
|
|
--without-setuid-hacks
|
|
|
|
|
|
|
|
make
|
2007-11-14 19:29:54 +01:00
|
|
|
make install_prefix=$PKG install
|
2020-02-09 13:48:13 +01:00
|
|
|
chmod 755 $PKG/usr/bin/xscreensaver
|
2008-08-22 01:13:15 +02:00
|
|
|
install -d $PKG/usr/share/wallpapers
|
2019-02-03 07:49:45 +01:00
|
|
|
|
2020-02-09 13:48:13 +01:00
|
|
|
echo "NotShowIn=KDE;GNOME;" >> $PKG/usr/share/applications/xscreensaver-properties.desktop
|
|
|
|
|
2019-02-03 07:49:45 +01:00
|
|
|
# PAM service file
|
2020-12-27 09:18:16 +01:00
|
|
|
install -D -m 0644 $SRC/$name.pam $PKG/etc/pam.d/$name
|
2020-02-09 13:48:13 +01:00
|
|
|
|
2019-03-14 14:15:32 +01:00
|
|
|
rm -r $PKG/usr/share/{locale,xscreensaver/config/README}
|
2007-04-10 22:22:44 +02:00
|
|
|
}
|