This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

plymouth-git PKGBUILD

By: ImNtReal on Jun 20th, 2012  |  syntax: None  |  size: 8.99 KB  |  views: 137  |  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: Ricardo Funke <ricardo dot funke at gmail dot com>
  2. # Contributor: Det <nimetonmaili at gmail dot com>
  3. # Contributor: Biginoz <biginoz at free dot fr>
  4. # Contributor: PirateJonno <j at skurvy dot no-ip dot org>
  5. # Contributor: Christian Autermann <christian at autermann dot org>
  6. # Contributor: Martin Lee <hellnest dot fuah at gmail dot com>
  7. # Contributor: lh <jarryson at gmail dot com>
  8. # Contributor: Cilyan Olowen <gaknar at gmail dot com>
  9. # Contributor: Shaffer <benjamin dot arnoult at yahoo dot fr>
  10. # Contributor: Brcha <brcha at gna dot org>
  11. # Contributor: Lyle Putnam <lcputnam at gmail dot com>
  12. # Contributor: Jameson Pugh <imntreal@gmail.com>
  13.  
  14. pkgname=plymouth-git
  15. pkgver=20120620
  16. pkgrel=1
  17. pkgdesc="A graphical boot splash screen with kernel mode-setting support (Git version)"
  18. arch=('i686' 'x86_64')
  19. url="http://freedesktop.org/wiki/Software/Plymouth"
  20. license=('GPL')
  21. depends=('libdrm' 'pango')
  22. optdepends=('initscripts' 'systemd')
  23. makedepends=('git' 'autoconf')
  24. options=('!libtool' '!emptydirs')
  25. install=${pkgname}.install
  26. backup=('etc/plymouth/plymouthd.conf')
  27. provides=('plymouth')
  28. conflicts=('plymouth')
  29. source=('arch-logo.png'
  30.         "http://projects.archlinux.org/svntogit/packages.git/plain/cryptsetup/repos/core-${CARCH}/encrypt_hook"
  31.         "http://projects.archlinux.org/svntogit/packages.git/plain/cryptsetup/repos/core-${CARCH}/encrypt_install"
  32.         'plymouthd.conf'
  33.         'plymouth.functions'
  34.         'plymouth.initcpio_hook'
  35.         'plymouth.initcpio_install'
  36.         'system-release'
  37.         'plymouth-halt.service'
  38.         'plymouth-kexec.service'
  39.         'plymouth-poweroff.service'
  40.         'plymouth-quit-wait.service'
  41.         'plymouth-quit.service'
  42.         'plymouth-read-write.service'
  43.         'plymouth-reboot.service'
  44.         'plymouth-start.service'
  45.         'systemd-ask-password-plymouth.path'
  46.         'systemd-ask-password-plymouth.service'
  47.         'kdm-plymouth.service'
  48.         'gdm-plymouth.service'
  49.         'lxdm-plymouth.service'
  50.         'kdm-unpatched-plymouth.service'
  51.         'plymouth-buildfixes.patch'
  52.                                 "plymouth-no-gtk.patch")
  53.  
  54. _gitroot='git://git.freedesktop.org/git/plymouth'
  55. _gitname='plymouth'
  56.  
  57. build() {
  58.   msg "Connecting to git.freedesktop.org GIT server...."
  59.  
  60.   if [ -d ${_gitname} ] ; then
  61.     cd ${_gitname} && git pull origin && cd ..
  62.     msg "The local files are updated."
  63.   else
  64.     git clone --depth 1 ${_gitroot} ${_gitname}
  65.   fi
  66.   msg "GIT checkout done. Preparing sources..."
  67.  
  68.   cd "${srcdir}"
  69.   rm -rf ${_gitname}-build
  70.   cp -r ${_gitname} ${_gitname}-build
  71.  
  72.   msg "Applying Patches..."
  73.  
  74.   cd ${_gitname}-build
  75.  
  76.   # Remove GTK+ dependency
  77. #       patch -p0 -i "${srcdir}/plymouth-no-gtk.patch"
  78.  
  79.         #X11 Renderer and fix initrd.
  80.   patch -p0 -i "${srcdir}/plymouth-buildfixes.patch"
  81.  
  82.   sed -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' \
  83.        -i src/libply-splash-graphics/ply-image.c
  84.  
  85.   msg "Starting make..."
  86.  
  87.   ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib \
  88.     --enable-tracing \
  89.     --with-system-root-install \
  90.     --enable-gdm-transition \
  91.     --with-gdm-autostart-file=yes \
  92.     --with-logo=/usr/share/plymouth/arch-logo.png \
  93.     --with-background-start-color-stop=0x000000 \
  94.     --with-background-end-color-stop=0x4D4D4D
  95. #    --enable-systemd-integration
  96.  
  97.   make
  98. }
  99.  
  100. package() {
  101.   cd ${_gitname}-build
  102.  
  103.   make DESTDIR="${pkgdir}" install
  104.  
  105.   install -Dm644 "${srcdir}/plymouth.initcpio_install" "${pkgdir}/usr/lib/initcpio/install/plymouth"
  106.   install -Dm644 "${srcdir}/plymouth.initcpio_hook" "${pkgdir}/usr/lib/initcpio/hooks/plymouth"
  107.   install -Dm644 "${srcdir}/encrypt_install" "${pkgdir}/usr/lib/initcpio/install/plymouth-encrypt"
  108.   install -Dm644 "${srcdir}/encrypt_hook" "${pkgdir}/usr/lib/initcpio/hooks/plymouth-encrypt"
  109.   install -Dm644 "${srcdir}/plymouth.functions" "${pkgdir}/etc/rc.d/functions.d/plymouth.functions"
  110.   install -Dm644 "${srcdir}/arch-logo.png" "${pkgdir}/usr/share/plymouth/arch-logo.png"
  111.   install -Dm644 "${srcdir}/system-release" "${pkgdir}/etc/system-release"
  112.   install -Dm644 "${srcdir}/plymouthd.conf" "${pkgdir}/etc/plymouth/plymouthd.conf"
  113.  
  114.   # Plymouth<->systemd integration, copied from systemd --enable-plymouth installation
  115.   install -Dm644 "${srcdir}/plymouth-halt.service" "${pkgdir}/usr/lib/systemd/system/plymouth-halt.service"
  116.   install -Dm644 "${srcdir}/plymouth-kexec.service" "${pkgdir}/usr/lib/systemd/system/plymouth-kexec.service"
  117.   install -Dm644 "${srcdir}/plymouth-poweroff.service" "${pkgdir}/usr/lib/systemd/system/plymouth-poweroff.service"
  118.   install -Dm644 "${srcdir}/plymouth-quit-wait.service" "${pkgdir}/usr/lib/systemd/system/plymouth-quit-wait.service"
  119.   install -Dm644 "${srcdir}/plymouth-quit.service" "${pkgdir}/usr/lib/systemd/system/plymouth-quit.service"
  120.   install -Dm644 "${srcdir}/plymouth-read-write.service" "${pkgdir}/usr/lib/systemd/system/plymouth-read-write.service"
  121.   install -Dm644 "${srcdir}/plymouth-reboot.service" "${pkgdir}/usr/lib/systemd/system/plymouth-reboot.service"
  122.   install -Dm644 "${srcdir}/plymouth-start.service" "${pkgdir}/usr/lib/systemd/system/plymouth-start.service"
  123.   install -Dm644 "${srcdir}/plymouth-start.service" "${pkgdir}/usr/lib/systemd/system/plymouth-start.service"
  124.   install -Dm644 "${srcdir}/systemd-ask-password-plymouth.path" "${pkgdir}/usr/lib/systemd/system/systemd-ask-password-plymouth.path"
  125.   install -Dm644 "${srcdir}/systemd-ask-password-plymouth.service" "${pkgdir}/usr/lib/systemd/system/systemd-ask-password-plymouth.service"
  126.   install -Dm644 "${srcdir}/kdm-plymouth.service" "${pkgdir}/usr/lib/systemd/system/kdm-plymouth.service"
  127.   install -Dm644 "${srcdir}/gdm-plymouth.service" "${pkgdir}/usr/lib/systemd/system/gdm-plymouth.service"
  128.   install -Dm644 "${srcdir}/lxdm-plymouth.service" "${pkgdir}/usr/lib/systemd/system/lxdm-plymouth.service"
  129.   install -Dm644 "${srcdir}/kdm-unpatched-plymouth.service" "${pkgdir}/usr/lib/systemd/system/kdm-unpatched-plymouth.service"
  130.   # Hook up the units so systemd uses them, copied from systemd --enable-plymouth installation
  131.   mkdir -p ${pkgdir}/usr/lib/systemd/system/{halt.target.wants,kexec.target.wants,multi-user.target.wants,poweroff.target.wants,reboot.target.wants,sysinit.target.wants}
  132.   ln -s "/usr/lib/systemd/system/plymouth-halt.service" "${pkgdir}/usr/lib/systemd/system/halt.target.wants/"
  133.   ln -s "/usr/lib/systemd/system/plymouth-kexec.service" "${pkgdir}/usr/lib/systemd/system/kexec.target.wants/"
  134.   ln -s "/usr/lib/systemd/system/plymouth-quit-wait.service" "${pkgdir}/usr/lib/systemd/system/multi-user.target.wants/"
  135.   ln -s "/usr/lib/systemd/system/plymouth-quit.service" "${pkgdir}/usr/lib/systemd/system/multi-user.target.wants/"
  136.   ln -s "/usr/lib/systemd/system/plymouth-poweroff.service" "${pkgdir}/usr/lib/systemd/system/poweroff.target.wants/"
  137.   ln -s "/usr/lib/systemd/system/plymouth-reboot.service" "${pkgdir}/usr/lib/systemd/system/reboot.target.wants/"
  138.   ln -s "/usr/lib/systemd/system/plymouth-read-write.service" "${pkgdir}/usr/lib/systemd/system/sysinit.target.wants/"
  139.   ln -s "/usr/lib/systemd/system/plymouth-start.service" "${pkgdir}/usr/lib/systemd/system/sysinit.target.wants/"
  140. }
  141.  
  142. sha256sums=('9bac679d2494d9b60b288be87021f1d7b85a9503ebbdce93d6e37c0fc07568ae'
  143.             'e0cbcabb81233b4d465833dca0faf1e762dc3cb6611597a25fe24e5d7209f316'
  144.             'cfe465bdad3d958bb2332a05e04f2e1e884422a5714dfd1a0a3b9b74bf7dc6ae'
  145.             '83ffd4aa52ca6a77423ab7edc2c2369808c7abffe68d97e134176c4592a81cc6'
  146.             '19c14656385444f51ce5ad2f3b768b0c0e9b090ccd62841677b63090ebc05d7f'
  147.             '91781cf1088e97cfc90bbe3be49bbdcf3a9b72de887e30f14f45efec8741ec91'
  148.             '46f9174d6a2a0ec00c2741bef2b95c1a2c7d0edc2a7797e1eea1f8828eb00b63'
  149.             '4ba2e16e7c6ed9c89e4999bd1ce5dd6e39e2db7447b5e43be384d0fbced67828'
  150.             '3d6295ad7ac2f734d16d76a61952f1b920691bde1651df66f21724515b2f1584'
  151.             'e1f64956b4ff54cacda5cc81fed9793639e9d8ab95890bb0bccd46113c67ecfa'
  152.             'c2970cbd4d2c3a1b711c49d10d05c8e3d53892b615f382d1378583970860aea0'
  153.             'f562a1cf427e767777f2b420954816c67c5e1af27f50b3c3c7bf1b80dc253ad9'
  154.             '626a11f826a8faea597bc3c7ae637e37120bf56a74ae3581b132512921c2ecb5'
  155.             '68ee92a7dfab2bc1e7c4505f1b7f5abce890f94e35736e24b8eae4f0faac5fcf'
  156.             '296712c5a1ea8d2bc03ed7a7af746e24e1c3c1649d63cca30baa967eac191680'
  157.             '2268929466022f51f3379c16536ec2d0153cc1a5c30f00fdcfbec44725bf0176'
  158.             '44b671c0663b9f61f0e8758b2138c6dd447323f898a476c77c74fd401362bfaf'
  159.             '45f9029c0857a6a93f9eb5fe4ad2656b8e849248a1b20651a28a2b5deb303d7e'
  160.             '6fff44e4a8a3379c474634aecee6669dfc3bc29490ca37e4a2f86f4992d0d5e3'
  161.             'ed62c3ce3b738f49e4a7dc185920045d850887cd1efbdde210023cd0eca06dd1'
  162.             '93c7a792976525edd7203979c081e03e2d1194b38a4ae7a62965915a0dc1e9ae'
  163.             '3c8fdedfed7b78d6e214b068146417efc7e2d452a7b361ba4d12474144a42ae2'
  164.             'b61881f724c778899e57b1b8612925491df3a4b3712a9ba49cd9c3b6690875da'
  165.             '8522092729aaa1dd5eddfe8ba7cdafcc407707fe06708c2f7e376ca69c02d943')
clone this paste RAW Paste Data