Advertisement
Guest User

plymouth git usr rebuild

a guest
Jul 12th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.38 KB | None | 0 0
  1. # Maintainer: Zephyr
  2. # Contributor: Det <nimetonmaili at gmail dot com>
  3. # Contributor: Christian Autermann <christian@autermann.org>
  4. # Contributor: Martin Lee <hellnest.fuah@gmail.com>
  5. # Contributor: Ricardo Funke
  6. # Contributor: PirateJonno <j@skurvy.no-ip.org>
  7. # Contributor: lh <jarryson#gmail.com>
  8. # Contributor: Cilyan Olowen <gaknar@gmail.com>
  9.  
  10. pkgname=plymouth-git
  11. pkgver=20120712
  12. pkgrel=1
  13. pkgdesc="A graphical boot splash screen with kernel mode-setting support (Git version)"
  14. arch=('i686' 'x86_64')
  15. url="http://freedesktop.org/wiki/Software/Plymouth"
  16. license=('GPL')
  17. depends=('systemd' 'libdrm' 'pango')
  18. makedepends=('git')
  19. options=('!libtool' '!emptydirs')
  20. install=${pkgname}.install
  21. backup=('etc/plymouth/plymouthd.conf')
  22. provides=('plymouth')
  23. conflicts=('plymouth')
  24. backup=('etc/plymouth/plymouthd.conf')
  25. source=('arch-logo.png'
  26.         "http://projects.archlinux.org/svntogit/packages.git/plain/cryptsetup/repos/core-${CARCH}/encrypt_hook"
  27.         "http://projects.archlinux.org/svntogit/packages.git/plain/cryptsetup/repos/core-${CARCH}/encrypt_install"
  28.         'encrypt_hook.patch'
  29.         'encrypt_install.patch'
  30.         'plymouthd.conf'
  31.         'plymouth.functions'
  32.         'plymouth.initcpio_hook'
  33.         'plymouth.initcpio_install'
  34.         'plymouth-update-initrd.patch'
  35.         'system-release'
  36.         'kdm-plymouth.service'
  37.         'gdm-plymouth.service'
  38.         'lxdm-plymouth.service'
  39.         'kdm-unpatched-plymouth.service'
  40.     'systemd-unit-dir.patch')
  41.  
  42. sha1sums=('3bc168dd06ff3e2790f26c131209a7fb4a5ccbd7'  # arch-logo.png
  43.           '2d3dfa82eabe51f1addf7472f65a7588324e1c0a'  # encrypt_hook
  44.           '2ddf6061162b481f343ce883083b6ab3b64342e0'  # encrypt_install
  45.           '70e210bceb266b974fc6f313f0a460d21c29af7b'  # encrypt_hook.patch
  46.           '08dc7cdc5873634042052014b5250d552158dc4e'  # encrypt_install.patch
  47.           '01235a179d8f991a37035c15cdcc0733b581afd4'  # plymouthd.conf
  48.           '60a55ff2cf417bafa07cf82abcf7680e5c046e52'  # plymouth.functions
  49.           '332bb6a59e0a58e75684c4545e7a645ca9007bd9'  # plymouth.initcpio_hook
  50.           '5352033523558ab1e6c49dc57f984f7c66d83610'  # plymouth.initcpio_install
  51.           '019663ae0070163e8d6cf268e7efeaaef474e725'  # plymouth-update-initrd.patch
  52.           '4c31cbbfbdeb48593641ff600c8d4fb7bda2b01c'  # system-release
  53.           '44c03d1cc71f7b9fa6ef7022584f0f81c9c17faf'  # kdm-plymouth.service
  54.           '92b2ea373991af921d8e2c8a8d06c31b4f9e7313'  # gdm-plymouth.service
  55.           '31eb516da0e78d9c185dfb9ee5b94468f713ff1c'  # lxdm-plymouth.service
  56.           'c80522e4fe29f8e4cd958e1fbb8407c53c5f4388'  # kdm-unpatched-plymouth.service
  57.       '9e8ad4d68588a7445e764740c1dcdfe81a482ca5') # systemd-unit-dir.patch
  58.  
  59. _gitroot='git://git.freedesktop.org/git/plymouth'
  60. _gitname='plymouth'
  61.  
  62. build() {
  63.   msg "Connecting to git.freedesktop.org GIT server...."
  64.  
  65.   if [ -d ${_gitname} ] ; then
  66.     cd ${_gitname} && git pull origin
  67.     msg "The local files are updated."
  68.   else
  69.     git clone ${_gitroot} ${_gitname}
  70.   fi
  71.   msg "GIT checkout done. Preparing sources..."
  72.  
  73.   cd "${srcdir}"
  74.   rm -rf ${_gitname}-build
  75.   cp -r ${_gitname} ${_gitname}-build
  76.  
  77.   msg "Applying Patches..."
  78.  
  79.   patch -p0 -i encrypt_hook.patch
  80.   patch -p0 -i encrypt_install.patch
  81.  
  82.   cd ${_gitname}-build
  83.   patch -p0 -i "${srcdir}/plymouth-update-initrd.patch"
  84.  
  85.   # Change SYSTEMD_UNIT_DIR to /usr/lib/systemd/system
  86.   patch -Np0 -i "${srcdir}/systemd-unit-dir.patch"
  87.  
  88.   sed -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' \
  89.        -i src/libply-splash-graphics/ply-image.c
  90.  
  91.   msg "Starting make..."
  92.  
  93.   ./autogen.sh --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib --libexecdir=/usr/lib \
  94.     --enable-tracing \
  95.     --with-system-root-install \
  96.     --enable-gdm-transition \
  97.     --with-gdm-autostart-file=yes \
  98.     --with-logo=/usr/share/plymouth/arch-logo.png \
  99.     --with-background-start-color-stop=0x000000 \
  100.     --with-background-end-color-stop=0x4D4D4D \
  101.     --enable-systemd-integration \
  102.     --without-system-root-install
  103.  
  104.   make
  105. }
  106.  
  107. package() {
  108.   cd ${_gitname}-build
  109.  
  110.   make DESTDIR="${pkgdir}" install
  111.  
  112.   install -Dm644 "${srcdir}/plymouth.initcpio_install" "${pkgdir}/usr/lib/initcpio/install/plymouth"
  113.   install -Dm644 "${srcdir}/plymouth.initcpio_hook" "${pkgdir}/usr/lib/initcpio/hooks/plymouth"
  114.   install -Dm644 "${srcdir}/encrypt_install" "${pkgdir}/usr/lib/initcpio/install/plymouth-encrypt"
  115.   install -Dm644 "${srcdir}/encrypt_hook" "${pkgdir}/usr/lib/initcpio/hooks/plymouth-encrypt"
  116.   install -Dm644 "${srcdir}/plymouth.functions" "${pkgdir}/etc/rc.d/functions.d/plymouth.functions"
  117.   install -Dm644 "${srcdir}/arch-logo.png" "${pkgdir}/usr/share/plymouth/arch-logo.png"
  118.   install -Dm644 "${srcdir}/system-release" "${pkgdir}/etc/system-release"
  119.   install -Dm644 "${srcdir}/plymouthd.conf" "${pkgdir}/etc/plymouth/plymouthd.conf"
  120.  
  121.   # Plymouth<->systemd integration, units for DMs
  122.   install -Dm644 "${srcdir}/kdm-plymouth.service" "${pkgdir}/usr/lib/systemd/system/kdm-plymouth.service"
  123.   install -Dm644 "${srcdir}/gdm-plymouth.service" "${pkgdir}/usr/lib/systemd/system/gdm-plymouth.service"
  124.   install -Dm644 "${srcdir}/lxdm-plymouth.service" "${pkgdir}/usr/lib/systemd/system/lxdm-plymouth.service"
  125.   install -Dm644 "${srcdir}/kdm-unpatched-plymouth.service" "${pkgdir}/usr/lib/systemd/system/kdm-unpatched-plymouth.service"
  126. }
  127.  
  128. # vim: set ts=2 sw=2 ft=sh noet:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement