Advertisement
cmsigler

fbsplash-1.5.4.4-16_PKGBUILD

Sep 27th, 2013
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.87 KB | None | 0 0
  1. # Maintainer: Heiko Baums <heiko@baums-on-web.de>
  2. # Contributor: Kurt J. Bosch <kjb-temp-2009 at alpenjodel.de>
  3.  
  4. pkgname=fbsplash
  5. pkgver=1.5.4.4
  6. pkgrel=16
  7. pkgdesc="A userspace implementation of a splash screen for Linux (formerly known as gensplash)"
  8. arch=('i686' 'x86_64')
  9. url="http://fbsplash.alanhaggai.org"
  10. license=('GPL')
  11. depends=('miscsplashutils' 'freetype2' 'libjpeg' 'libpng' 'libmng' 'lcms' 'gpm')
  12. optdepends=('linux-fbcondecor: enable console background images'
  13. 'fbsplash-extras: additional functionality like daemon icons'
  14. 'uswsusp-fbsplash: suspend to disk with fbsplash'
  15. 'python: convert themes from splashy to fbsplash')
  16. conflicts=('fbsplash-scripts' 'initscripts-extras-fbsplash')
  17. options=('!makeflags')
  18. backup=('etc/conf.d/fbcondecor' 'etc/conf.d/splash')
  19. install=fbsplash.install
  20. freetype_pkgver=2.5.0.1
  21. source=(http://downloads.sourceforge.net/project/fbsplash.berlios/splashutils-${pkgver}.tar.bz2
  22. http://downloads.sourceforge.net/sourceforge/freetype/freetype-${freetype_pkgver}.tar.bz2
  23. splash_start_initcpio.patch
  24. splash.conf
  25. fbsplash-basic.sh
  26. fbsplash.initcpio_install
  27. fbsplash.initcpio_hook
  28. fbcondecor.daemon
  29. fbcondecor.conf
  30. freetype-2.2.1-enable-valid.patch
  31. freetype-2.3.0-enable-spr.patch
  32. freetype-2.4.11-enable-sph.patch
  33. libfreetype_automake_lcms2.patch)
  34. md5sums=('2a16704c4adde97b58812cd89e3f2342'
  35. 'c72e9010b1d986d556fc0b2b5fcbf31a'
  36. '4045e315c52f5a576fca4f7e634eeb91'
  37. '90708a96038d7d7921c2e9fde938c058'
  38. 'b5e6c08bbe7645a1c035565ea7d66437'
  39. '2860cc29d5da2ea65c810de068bcc262'
  40. 'f65cf94d4d4959bb44cda5fa634ab405'
  41. '631b10db2f7c4b70062e79b60541ddbb'
  42. 'b3db9d4fd902b62ac9e38589677e2d16'
  43. '214119610444c9b02766ccee5e220680'
  44. '816dc8619a6904a7385769433c0a8653'
  45. '2422f8902224fedb46ae9eec08c8ceac'
  46. '3af70f2b768f8c4451fd2a02844eda4b')
  47.  
  48. prepare() {
  49. cd "${srcdir}/splashutils-${pkgver}"
  50.  
  51. # First, move unpacked (updated) version of freetype in order to build a
  52. # stand-alone libfreetype.a to link splashutils
  53. mv -f "${srcdir}/freetype-${freetype_pkgver}" \
  54. "${srcdir}/splashutils-${pkgver}/libs/"
  55.  
  56. ######
  57. # Apply patches from this version of the freetype2 package
  58. cd "${srcdir}/splashutils-${pkgver}/libs/freetype-${freetype_pkgver}"
  59. ######
  60. patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch"
  61. patch -Np1 -i "${srcdir}/freetype-2.3.0-enable-spr.patch"
  62.  
  63. # Disabled for now due to resistance
  64. # Kept here for easier rebuilds via ABS
  65. # https://bugs.archlinux.org/task/35274
  66. #patch -Np1 -i "${srcdir}/freetype-2.4.11-enable-sph.patch"
  67. ######
  68.  
  69. cd "${srcdir}/splashutils-${pkgver}"
  70.  
  71. # Revise splashutils to allow building of libfreetype.a as a part of the
  72. # fbsplash PKGBUILD
  73. # Also, fix problems caused by newer versions of autoconf/make, lcms2, libmng
  74. patch -Np0 -i "${srcdir}/libfreetype_automake_lcms2.patch"
  75.  
  76. autoreconf -f -i
  77.  
  78. # fix fbcondecor_ctl splash type
  79. sed -e 's,fbsplash_lib_init(fbspl_bootup),fbsplash_lib_init(fbspl_undef),' -i src/fbcon_decor_ctl.c
  80.  
  81. # fix libdir
  82. sed -i "s:/lib/splash/cache:/usr/lib/splash/cache:g" debian/splashutils.dirs
  83. sed -i "s:/lib/splash/tmp:/usr/lib/splash/tmp:g" debian/splashutils.dirs
  84. sed -i "s:/lib/splash/cache:/usr/lib/splash/cache:g" debian/splash.conf
  85. sed -i "s:/lib/splash/cache:/usr/lib/splash/cache:g" debian/changelog
  86. sed -i "s:/lib/splash/tmp:/usr/lib/splash/tmp:g" debian/changelog
  87. sed -i "s:/lib/splash/cache:/usr/lib/splash/cache:g" docs/daemon
  88. sed -i "s:@libdir@/splash/cache:/usr/lib/splash/cache:g" scripts/splash-functions.sh.in
  89. sed -i "s:@libdir@/splash/tmp:/usr/lib/splash/tmp:g" scripts/splash-functions.sh.in
  90. sed -i "s:@libdir@/splash/bin:/usr/lib/splash/bin:g" scripts/splash-functions.sh.in
  91. sed -i "s:/lib/splash/cache:/usr/lib/splash/cache:g" src/daemon_cmd.c
  92. sed -i "s:@libdir@/splash/sys:/usr/lib/splash/sys:g" scripts/splash_geninitramfs.in
  93. sed -i "s:@libdir@/splash:/usr/lib/splash:g" scripts/splash_manager.in
  94. sed -i "s:@libdir@/splash:/usr/lib/splash:g" src/fbsplash.h.in
  95.  
  96. # fix set_event_dev call for initcpio usage (if evdev module is there)
  97. #patch -Np2 -i "${srcdir}/splash_start_initcpio.patch"
  98. }
  99.  
  100. build() {
  101. cd "${srcdir}/splashutils-${pkgver}"
  102.  
  103. # If PKGBUILD has problems, uncomment following line to turn off QUIET
  104. #export QUIET="false"
  105.  
  106. export LIBS="-lbz2"
  107. ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --without-klibc --enable-fbcondecor --with-gpm --with-mng --with-png --with-ttf --with-ttf-kernel
  108. make
  109. }
  110.  
  111. package() {
  112. cd "${srcdir}/splashutils-${pkgver}"
  113.  
  114. make DESTDIR="${pkgdir}" sbindir="/usr/bin" eexecbindir="/usr/bin" eexecsbindir="/usr/bin" install
  115.  
  116. cd "${pkgdir}"
  117.  
  118. # fix duplicate slashes to get splash_cache_cleanup grep to work
  119. sed -r -e 's,^(export spl_.*="/)/+,\1,' -i usr/bin/splash-functions.sh
  120.  
  121. # fix the path to splash_util
  122. sed -r -e 's|sbin|usr/bin|g' -i usr/bin/splash{-functions.sh,_{geninitramfs,manager}} usr/share/doc/splashutils/{porting,early_bootup} usr/include/fbsplash.h
  123.  
  124. # provide the mountpoint needed by splash-functions.sh
  125. install -m755 -d usr/lib/splash/{cache,tmp}
  126. install -m700 -d usr/lib/splash/sys
  127.  
  128. # Install fbsplash scripts and config file
  129. install -D -m644 "${srcdir}/splash.conf" "etc/conf.d/splash"
  130. install -D -m644 "${srcdir}/fbsplash-basic.sh" "etc/rc.d/functions.d/fbsplash-basic.sh"
  131. install -D -m644 "${srcdir}/fbsplash.initcpio_install" "usr/lib/initcpio/install/fbsplash"
  132. install -D -m644 "${srcdir}/fbsplash.initcpio_hook" "usr/lib/initcpio/hooks/fbsplash"
  133.  
  134. # Install fbcodecor script and config file
  135. install -D -m644 "${srcdir}/fbcondecor.conf" "etc/conf.d/fbcondecor"
  136. install -D -m755 "${srcdir}/fbcondecor.daemon" "etc/rc.d/fbcondecor"
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement