Advertisement
cmsigler

uswsusp-fbsplash-1.0-8_PKGBUILD

Sep 10th, 2013
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Maintainer: Kurt J. Bosch <kjb-temp-2009 at alpenjodel.de>
  4. # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
  5. # Contributor: Kaos < gianlucaatlas at gmail dot com >
  6.  
  7. _pkgname=uswsusp
  8. pkgname=${_pkgname}-fbsplash
  9. pkgver=1.0
  10. pkgrel=8
  11. pkgdesc="Userspace software suspend aka suspend-utils - with Fbsplash support"
  12. arch=('i686' 'x86_64')
  13. url="http://suspend.sourceforge.net"
  14. license=('GPL')
  15. depends=('libgcrypt' 'libx86' 'lzo2'
  16. 'pciutils>=2.2.4' 'zlib'
  17. 'fbsplash'
  18. 'mkinitcpio'
  19. )
  20. optdepends=(
  21. 'fbsplash-themes-arch-banner: Show icons for daemons and pseudo-services'
  22. 'fbsplash-extras: Show icons for daemons and pseudo-services'
  23. 'pm-utils: Show icons for daemons and pseudo-services'
  24. )
  25. provides=("${_pkgname}=${pkgver}")
  26. conflicts=("${_pkgname}")
  27. backup=('etc/suspend.conf')
  28. install=INSTALL
  29. changelog=CHANGELOG
  30. source=(
  31. "http://downloads.sourceforge.net/project/suspend/suspend/suspend-${pkgver}/suspend-utils-${pkgver}.tar.bz2"
  32. 'suspend-0.9_pre0-errno.patch'
  33. 'uresume-hook'
  34. 'uresume-install'
  35. 'suspend.conf.patch'
  36. 's2ram-chvt63.patch'
  37. 's2disk-no-chvt1.patch'
  38. 's2disk-splash-prepare-fail-msg-only.patch'
  39. 's2disk-keep-vt16.patch'
  40. 'fbsplash-no-pre-snapshoot-progress.patch'
  41. 'fbsplash-no-fade-effects.patch'
  42. 'resume-disable-print-libgcrypt-version.patch'
  43. 'load-checksum-mismatch.patch'
  44. )
  45.  
  46. build() {
  47. cd "${srcdir}"/suspend-utils-${pkgver}
  48.  
  49. # Fix build error - patch from http://bugs.gentoo.org/339759
  50. patch -Np0 -i ../suspend-0.9_pre0-errno.patch
  51.  
  52. # Make the config file a bit more nice
  53. patch -Np2 -i ../suspend.conf.patch
  54.  
  55. # Show a black screen instead of ugly console
  56. patch -Np2 -i ../s2ram-chvt63.patch
  57. patch -Np2 -i ../s2disk-no-chvt1.patch
  58.  
  59. # Don't show message "Looking for splash system..."
  60. patch -Np2 -i ../s2disk-splash-prepare-fail-msg-only.patch
  61.  
  62. # If already on default Fbsplash VT, don't change away from it
  63. patch -Np2 -i ../s2disk-keep-vt16.patch
  64.  
  65. # Fix initial suspend progress bar shown again after resume (0% = 100% resume in reverse)
  66. patch -Np2 -i ../fbsplash-no-pre-snapshoot-progress.patch
  67.  
  68. # Disable fadein/fadeout effects (kernel cmdline isn't parsed)
  69. patch -Np2 -i ../fbsplash-no-fade-effects.patch
  70.  
  71. # Don't show message "resume: libgcrypt version: VERSION"
  72. patch -Np2 -i ../resume-disable-print-libgcrypt-version.patch
  73.  
  74. # Fix MD5 checksum mismatch problem -- checksum correct yet fails
  75. patch -Np2 -i ../load-checksum-mismatch.patch
  76.  
  77. ./configure \
  78. --prefix=/usr \
  79. --enable-compress \
  80. --enable-encrypt \
  81. --enable-threads \
  82. --disable-resume-static \
  83. --disable-static \
  84. --sysconfdir=/etc \
  85. --sbindir=/usr/bin \
  86. --enable-fbsplash
  87. make
  88. }
  89.  
  90. package() {
  91. cd "${srcdir}"/suspend-utils-${pkgver}
  92.  
  93. make DESTDIR="${pkgdir}" install
  94. rmdir "${pkgdir}"/dev
  95.  
  96. install -D -m 644 "${srcdir}"/uresume-hook "${pkgdir}"/usr/lib/initcpio/hooks/uresume
  97. install -D -m 644 "${srcdir}"/uresume-install "${pkgdir}"/usr/lib/initcpio/install/uresume
  98. }
  99.  
  100. md5sums=('02f7d4b679bad1bb294a0efe48ce5934'
  101. '511f2309fccc4c6ec411104d1bcd371e'
  102. 'fe43dbb7c80d48425f8afa03ae7cc317'
  103. 'bfac28c03f84d56d341ed24e318dfb6e'
  104. '459b51ca2c39f4fba3d567127dc93165'
  105. '95111769efe97103f1ab5cfe9a408545'
  106. '4927a0bfa0056918ab58c47e8f837ef9'
  107. 'c367b273e0d9430e44d86e092eff23f6'
  108. '8db88e41c1a8a34cf36d59498f19bdcc'
  109. '917d079ea7cd9a02d19361e71b0b3ac7'
  110. 'a479dc5f19d1ee9c8315f3e63217a65a'
  111. '87adbe05e7281f3a571cdcae7e0378fc'
  112. '72cb450098eeddd682053d44c6d80bd3')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement