47 lines
1.6 KiB
Bash
47 lines
1.6 KiB
Bash
# Template file for 'xscreensaver'
|
|
pkgname=xscreensaver
|
|
version=6.05.1
|
|
revision=1
|
|
wrksrc="xscreensaver-6.05"
|
|
build_style=gnu-configure
|
|
configure_args="--with-pam --with-login-manager
|
|
--includedir=${XBPS_CROSS_BASE}/include
|
|
--libdir=${XBPS_CROSS_BASE}/lib"
|
|
conf_files="/etc/pam.d/xscreensaver"
|
|
hostmakedepends="bc glib-devel intltool pkg-config"
|
|
makedepends="glu-devel libXi-devel libXinerama-devel libXmu-devel libXpm-devel
|
|
libXrandr-devel pam-devel gdk-pixbuf-xlib-devel elogind-devel gtk+3-devel"
|
|
depends="perl perl-LWP"
|
|
short_desc="Screen saver and locker for the X Window System"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="MIT"
|
|
homepage="https://www.jwz.org/xscreensaver/"
|
|
changelog="https://www.jwz.org/xscreensaver/changelog.html"
|
|
distfiles="https://www.jwz.org/xscreensaver/xscreensaver-${version}.tar.gz"
|
|
checksum=2da512b201cacc85c496f602e73947da4e89bfb5bb67a74e65e052fd5e677b3a
|
|
|
|
# marbling.c: In function 'fade': incompatible type for argument 1 of 'vqdmulhq_s16'
|
|
CFLAGS=-flax-vector-conversions
|
|
|
|
pre_configure() {
|
|
mkdir -p /usr/share/X11/app-defaults
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir etc/pam.d
|
|
make install_prefix=${DESTDIR} GTK_DATADIR=/usr/share install
|
|
rm ${DESTDIR}/usr/share/man/man6/xscreensaver-systemd.6
|
|
ln -s /usr/libexec/xscreensaver/xscreensaver-text ${DESTDIR}/usr/bin/xscreensaver-text
|
|
echo "NotShowIn=KDE;GNOME;" >> ${DESTDIR}/usr/share/applications/xscreensaver-settings.desktop
|
|
sed '/^$/q' < driver/xscreensaver.c > LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
|
|
xscreensaver-elogind_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - elogind support"
|
|
pkg_install() {
|
|
vmove usr/libexec/xscreensaver/xscreensaver-systemd
|
|
}
|
|
}
|