SHARE
TWEET

thunderbird-theme-adwaita-git-17.0_bfcd5c5-1: PKGBUILD

jtts Feb 5th, 2014 7 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Diego Principe <cdprincipe@at@gmail@dot@com>
  2. # Contributor: jtts
  3.  
  4. pkgname=thunderbird-theme-adwaita-git
  5. pkgver=17.0_bfcd5c5
  6. pkgrel=1
  7. pkgdesc="Adwaita theme for Thunderbird (Matches the default Gnome Shell theme)"
  8. url="https://addons.mozilla.org/en-US/thunderbird/addon/adwaita-thunderbird"
  9. arch=('any')
  10. license=('MPL')
  11. depends=("thunderbird")
  12. makedepends=('unzip' 'git')
  13. provides=('thunderbird-theme-adwaita')
  14. conflicts=('thunderbird-theme-adwaita')
  15. source=("git://github.com/gnome-integration-team/thunderbird-gnome.git#commit=bfcd5c5400f5ae7d7cbdf2fa623efb94a098c46b"
  16.         "0001-Add-white-border-after-tabs-toolbar.patch"
  17.         "0002-Port-.css-for-textbox-menu-notification-from-firefox.patch"
  18.         "0003-Upgrade-to-Thunderbird-24.0.1.patch"
  19.         "0004-Port-changes-in-about-addons-page-from-gnome-firefox.patch")
  20. sha256sums=(SKIP
  21.             '9c43415902fe1f317d0a6beb21fb06de392940912f2b2b0e43b7801cb6ebbb3f'
  22.             '8f4f542276b4437eeba5acf7351f5333fbc138de6bd11879014520640a84212e'
  23.             '461e34dcde8ef80ee96d3bf0c5fd11e2b8e794bed935a88847e7e07749caf571'
  24.             'c135d69cd894777888e4f0df1bfb305970061c0253b19fbf15452abb9c1173ff')
  25.  
  26. pkgver() {
  27.   cd $srcdir/thunderbird-gnome
  28.   echo $(cat $srcdir/thunderbird-gnome/theme/install.rdf | grep em:version | cut -f2 -d'>' | cut -f1 -d'<')_$(git rev-parse --short HEAD)
  29. }
  30.  
  31. prepare() {
  32.   cd $srcdir/thunderbird-gnome
  33.   git am < "$srcdir/0001-Add-white-border-after-tabs-toolbar.patch"
  34.   git am < "$srcdir/0002-Port-.css-for-textbox-menu-notification-from-firefox.patch"
  35.   git am < "$srcdir/0003-Upgrade-to-Thunderbird-24.0.1.patch"
  36.   git am < "$srcdir/0004-Port-changes-in-about-addons-page-from-gnome-firefox.patch"
  37. }
  38.  
  39. package() {
  40.  
  41. rel=$(cat $srcdir/thunderbird-gnome/theme/install.rdf | grep em:version | cut -f2 -d'>' | cut -f1 -d'<')
  42. emid=$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' $srcdir/thunderbird-gnome/theme/install.rdf) || return 1
  43. dstdir=$pkgdir/usr/lib/thunderbird/extensions/${emid}
  44.  
  45.   cd $srcdir/thunderbird-gnome/theme
  46.   install -d $dstdir
  47.   cp -R * $dstdir
  48.   find $pkgdir -type d -exec chmod 0755 {} \;
  49.   find $pkgdir -type f -exec chmod 0644 {} \;
  50. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top