PKGBUILD 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # Maintainer (arch): Levente Polyak <anthraxx[at]archlinux[dot]org>
  2. # Contributor: Eric Bélanger <eric@archlinux.org>
  3. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  4. # Contributor: André Silva <emulatorman@hyperbola.info>
  5. # Contributor: freemor <freemor@freemor.ca>
  6. # parabola changes and rationale:
  7. # - remove non-free asm files
  8. # - remove references to non-free software
  9. # - remove nag warnings
  10. pkgname=xscreensaver
  11. pkgver=6.04
  12. pkgrel=1
  13. pkgrel+=.parabola1
  14. pkgdesc='Screen saver and locker for the X Window System'
  15. url='https://www.jwz.org/xscreensaver/'
  16. arch=('x86_64')
  17. arch+=(armv7h i686)
  18. license=('BSD')
  19. depends=(
  20. 'gtk2' 'glu' 'xorg-appres' 'libglvnd' 'libjpeg-turbo' 'libjpeg.so'
  21. 'libsystemd.so' 'libx11' 'libxcrypt' 'libcrypt.so' 'libxext' 'libxft' 'libxi'
  22. 'libxinerama' 'libxmu' 'libxrandr' 'libxt' 'libxxf86vm' 'perl-libwww' 'pam'
  23. 'libpam.so' 'glibc' 'glib2' 'gdk-pixbuf2' 'gdk-pixbuf-xlib'
  24. )
  25. makedepends=('bc' 'intltool' 'libxpm' 'gdm' 'systemd' 'systemd-libs')
  26. optdepends=('gdm: for login manager support')
  27. backup=('etc/pam.d/xscreensaver')
  28. source=(https://www.jwz.org/xscreensaver/${pkgname}-${pkgver}.tar.gz
  29. LICENSE)
  30. source+=(remove_bsod.patch
  31. remove-nagging.patch)
  32. sha512sums=('7e8f01853b3d9252ce0120894db7dd4fa3cd19114602a09aa770ec750e2f3742585ca4daf19b009e97386f8c0e3cc89330fe760148c6388f41de8cc1f48f8071'
  33. '863c699479b2ec2775a0d1cba22e615929194a14af164b3513e46a0c04229da6547255a4da8f7f1bbb40906898c124ed3c9ec2436b76b62affcb62385af9783e')
  34. sha512sums+=('1b63c91ae8ef74b9fe34ddf098620299fcf791140468240eeebbdc00a1d34f176d3a67ba90b942bfece0c76c2239eea02d86b5405e5397c7cff6e021c5bf72e3'
  35. 'da0d2dc10fda9e95950269367ff8b275c8262036e2d1302918c313a0bff79c35cacbb818c8f7b77b7b1f9d05aec91ecfaa78049d4dabb7c400aabeeb9af55b68')
  36. b2sums=('42411d5f63a99d4aaccbc3bc34f8c31a1f25f1806eaf513a1ba59c2f24722e27fa2a7b1970c82a591502627224c4b4269176bda3475aba58bb945d5cd9a9464b'
  37. 'cacb6ba39d6ecb8703ef5f5a7dc74de0ca805cce73b43a8b9b6b4c255c909aa9b5e692de76c2fbd4da26ce6efb5f2a46138c43b1b37f53cee6d20fd6ed41f4a9')
  38. b2sums+=('1152d9141f994bb1494a4583460529ff607d3cb1ab5b53e8f2fa65d1bf9c9552c4d8e246dc5ce28c6e63735b46234baad6768d89c85c159f0ff089da66cc319a'
  39. '607040a87be8b1dbefb3fa4897de33f2f712946a68bf4e5af90888b1783bca40bfd2cf5365ec75bfc61e71c09abcb95b59406501e7659cebf12cdae29592e326')
  40. prepare() {
  41. cd ${pkgname}-${pkgver}
  42. # Deleting dmsc.asm file due which don't have source code supplied
  43. rm -v hacks/images/m6502/dmsc.asm
  44. # Remove BSOD for references to non-free (Issue #2391)
  45. echo "applying remove_bsod.patch"
  46. patch -Nup1 hacks/Makefile.in ../remove_bsod.patch
  47. rm -v hacks/bsod*
  48. # remove annoying "this program is too old" messages
  49. echo "applying remove-nagging.patch"
  50. patch -Nup1 -i ../remove-nagging.patch
  51. }
  52. build() {
  53. cd ${pkgname}-${pkgver}
  54. ./configure \
  55. --prefix=/usr \
  56. --sysconfdir=/etc \
  57. --localstatedir=/var \
  58. --libexecdir=/usr/lib \
  59. --without-setuid-hacks \
  60. --with-pam \
  61. --with-login-manager \
  62. --with-gtk \
  63. --with-gl \
  64. --without-gle \
  65. --with-pixbuf \
  66. --with-jpeg
  67. make
  68. }
  69. package() {
  70. cd ${pkgname}-${pkgver}
  71. install -d "${pkgdir}/etc/pam.d"
  72. make install_prefix="${pkgdir}" install
  73. install -Dm 644 ../LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
  74. echo "NotShowIn=KDE;GNOME;" >> "${pkgdir}/usr/share/applications/xscreensaver-properties.desktop"
  75. }