Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

miscsplashutils-0.1.8-6_PKGBUILD

By: cmsigler on Oct 16th, 2013  |  syntax: None  |  size: 2.39 KB  |  hits: 238  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Heiko Baums <heiko@baums-on-web.de>
  2. # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
  3.  
  4. pkgname=miscsplashutils
  5. pkgver=0.1.8
  6. pkgrel=6
  7. pkgdesc='Miscellaneous framebuffer utilities including fbres and fbtruetype'
  8. arch=('i686' 'x86_64')
  9. url='http://dev.gentoo.org/~spock/projects/gensplash/'
  10. license=('GPL')
  11. #depends=('freetype2')
  12. depends=('zlib' 'bzip2' 'sh')
  13. freetype_pkgver=2.5.0.1
  14. source=("http://distfiles.gentoo.org/distfiles/${pkgname}-${pkgver}.tar.bz2"
  15.         "http://downloads.sourceforge.net/sourceforge/freetype/freetype-${freetype_pkgver}.tar.bz2"
  16.         "freetype-2.2.1-enable-valid.patch"
  17.         "freetype-2.3.0-enable-spr.patch"
  18.         "freetype-2.4.11-enable-sph.patch")
  19. md5sums=('0a9505c5c5ed169e6158d2c1b06ff40b'
  20.          'c72e9010b1d986d556fc0b2b5fcbf31a'
  21.          '214119610444c9b02766ccee5e220680'
  22.          '816dc8619a6904a7385769433c0a8653'
  23.          '2422f8902224fedb46ae9eec08c8ceac')
  24.  
  25. prepare() {
  26.   cd "${srcdir}/freetype-${freetype_pkgver}"
  27.  
  28.   ######
  29.   # Apply patches from this version of the freetype2 package
  30.   ######
  31.   patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch"
  32.   patch -Np1 -i "${srcdir}/freetype-2.3.0-enable-spr.patch"
  33.  
  34.   # Disabled for now due to resistance
  35.   # Kept here for easier rebuilds via ABS
  36.   # https://bugs.archlinux.org/task/35274
  37.   #patch -Np1 -i "${srcdir}/freetype-2.4.11-enable-sph.patch"
  38.   ######
  39.  
  40.   cd "${srcdir}/${pkgname}-${pkgver}"
  41.  
  42.   sed -i "26s:libz.a:libz.a \$\(LIBDIR\)/libbz2.a:" fbtruetype/Makefile
  43.   sed -i "26s:\$(LIBDIR)/libfreetype\.a:../libfreetype.a:" fbtruetype/Makefile
  44.   #/usr/bin move update
  45.   sed -i "s/sbin/bin/g" fbtruetype/Makefile
  46. }
  47.  
  48. build() {
  49.   cd "${srcdir}/freetype-${freetype_pkgver}"
  50.  
  51.   ######
  52.   # Make libfreetype.a static library to allow linking of miscsplashutils
  53.   # static images
  54.   ######
  55.   # Disable PNG support as it's not needed
  56.   ./configure --prefix=/usr \
  57.     --without-png
  58.  
  59.   make
  60.  
  61.   cp -fp ./objs/.libs/libfreetype.a "${srcdir}/${pkgname}-${pkgver}/"
  62.   ######
  63.  
  64.   cd "${srcdir}/${pkgname}-${pkgver}"
  65.  
  66.   make
  67. }
  68.  
  69. package() {
  70.   cd "${srcdir}/${pkgname}-${pkgver}"
  71.  
  72.   make DESTDIR="${pkgdir}/usr" install
  73.  
  74.   install -d "${pkgdir}/usr/lib/splash/bin"
  75.   ln -s /usr/bin/wc "${pkgdir}/usr/lib/splash/bin"
  76.  
  77.   # install luxisri.ttf to avoid an x-server dependency
  78.   install -D -m644 fbtruetype/luxisri.ttf "${pkgdir}/etc/splash/luxisri.ttf"
  79. }