# Contributor: prspkt # Maintainer: prspkt pkgname=xscreensaver pkgver=6.06 pkgrel=2 pkgdesc="Screensavers for X11 environment" url="https://www.jwz.org/xscreensaver/" arch="all" license="GPL-2.0-or-later GPL-3.0-or-later 0BSD MIT" depends="bc" options="suid" makedepends=" elogind-dev gdk-pixbuf-xlib-dev gettext-dev glu-dev gtk+2.0-dev gtk+3.0-dev intltool libjpeg-turbo-dev libxi-dev libxinerama-dev libxml2-dev libxmu-dev libxrandr-dev mesa-dev perl " subpackages="$pkgname-doc $pkgname-gl-extras:gl $pkgname-extras" source="https://www.jwz.org/xscreensaver/xscreensaver-$pkgver.tar.gz dumb-pam-check.patch " _libexecdir=/usr/libexec/xscreensaver _confdir=/usr/share/xscreensaver/config # secfixes: # 6.02-r0: # - CVE-2021-34557 build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-gtk \ --with-xinerama-ext \ --with-xf86vmode-ext \ --with-randr-ext \ --with-elogind make } package() { make install_prefix="$pkgdir" install } gl() { local _conf pkgdesc="An enhanced set of screensavers that require OpenGL" cd "$pkgdir" mkdir -p "$subpkgdir"/$_confdir scanelf -Rn . | awk '$2 ~ /libE?GL/ { print $3 }' | while read -r f; do mkdir -p "$subpkgdir"/${f%/*} mv "$f" "$subpkgdir"/${f%/*} _conf=usr/share/xscreensaver/config/${f##*/}.xml if [ -f "$_conf" ]; then mv "$_conf" "$subpkgdir"/$_confdir fi done } extras() { pkgdesc="An enhanced set of screensavers" mkdir -p "$subpkgdir/$_libexecdir" "$subpkgdir/$_confdir" local _path for _path in "$pkgdir/$_libexecdir"/*; do expr "$_path" : \ '.*/xscreensaver-\(auth\|gfx\)$' > /dev/null || \ mv "$_path" "$subpkgdir/$_libexecdir" done mv "$pkgdir/$_confdir"/* "$subpkgdir/$_confdir" } sha512sums=" 988e30d422ef985ac348c275e098ddfe1ee034a2e916c91690ee2836c908801c1e017e22d828aca981b0f8bfc5491cd83ab7c45aabc155ba5013df8b149cbcb5 xscreensaver-6.06.tar.gz 3e0dd718964e6b34c6dd35c67550be4a8e5062f03bc443499e3663b1c1fa0fdb77f68dff74e3a0aabe337b9eae0dc32be823894483d42965ef3c4f01a6c311ff dumb-pam-check.patch "