template 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Template file for 'xscreensaver'
  2. pkgname=xscreensaver
  3. version=5.44
  4. revision=1
  5. build_style=gnu-configure
  6. configure_args="--with-pam --with-login-manager
  7. --with-x-app-defaults=/usr/share/X11/app-defaults
  8. --includedir=${XBPS_CROSS_BASE}/include
  9. --libdir=${XBPS_CROSS_BASE}/lib"
  10. conf_files="/etc/pam.d/xscreensaver"
  11. hostmakedepends="bc intltool pkg-config"
  12. makedepends="glu-devel libXinerama-devel libXmu-devel libXpm-devel
  13. libXrandr-devel libglade-devel pam-devel"
  14. short_desc="Screen saver and locker for the X Window System"
  15. maintainer="Leah Neukirchen <leah@vuxu.org>"
  16. license="MIT"
  17. homepage="https://www.jwz.org/xscreensaver/"
  18. changelog="https://www.jwz.org/xscreensaver/changelog.html"
  19. distfiles="https://www.jwz.org/xscreensaver/xscreensaver-${version}.tar.gz"
  20. checksum=73d8089cfc7d7363b5dac99b5b01dffb3429d0a855e6af16ce9a4b7777017b95
  21. # Liberation
  22. post_patch() {
  23. # Commands below is collected and modified from:
  24. # https://git.parabola.nu/abslibre.git/tree/libre/xscreensaver/PKGBUILD
  25. # Deleting dmsc.asm file due which don't have source code supplied
  26. rm -v hacks/images/m6502/dmsc.asm
  27. # Remove BSOD for referneces to non-free (Issue #2391)
  28. rm -v hacks/bsod*
  29. }
  30. do_install() {
  31. vmkdir etc/pam.d
  32. make install_prefix=${DESTDIR} install
  33. echo "NotShowIn=KDE;GNOME;" >> ${DESTDIR}/usr/share/applications/xscreensaver-properties.desktop
  34. sed '/^$/q' < driver/xscreensaver.c > LICENSE
  35. vlicense LICENSE
  36. }