38 lines
1.4 KiB
Bash
38 lines
1.4 KiB
Bash
# Template file for 'xscreensaver'
|
|
pkgname=xscreensaver
|
|
version=6.01
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-pam --with-login-manager
|
|
--with-x-app-defaults=/usr/share/X11/app-defaults
|
|
--includedir=${XBPS_CROSS_BASE}/include
|
|
--libdir=${XBPS_CROSS_BASE}/lib"
|
|
conf_files="/etc/pam.d/xscreensaver"
|
|
hostmakedepends="bc intltool pkg-config"
|
|
makedepends="glu-devel libXi-devel libXinerama-devel libXmu-devel libXpm-devel
|
|
libXrandr-devel libglade-devel pam-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=085484665d91f60b4a1dedacd94bcf9b74b0fb096bcedc89ff1c245168e5473b
|
|
|
|
do_extract() {
|
|
# Ugly hack as xscreensaver-6.01.tar.gz contains a spurious
|
|
# hardlink, which trips up bsdtar, but extracts correctly.
|
|
# So ignore the error.
|
|
bsdtar xf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tar.gz -C ${wrksrc}/.. || true
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir etc/pam.d
|
|
make install_prefix=${DESTDIR} install
|
|
ln -s /usr/libexec/xscreensaver/xscreensaver-text ${DESTDIR}/usr/bin/xscreensaver-text
|
|
echo "NotShowIn=KDE;GNOME;" >> ${DESTDIR}/usr/share/applications/xscreensaver-properties.desktop
|
|
sed '/^$/q' < driver/xscreensaver.c > LICENSE
|
|
vlicense LICENSE
|
|
}
|