Skip to content

Commit

Permalink
Pull in thunderbird-lightning-bin from AUR as of 4.0.0.1-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Antman authored and Jason Antman committed Jul 1, 2015
1 parent b2d8556 commit 1a308f0
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
40 changes: 40 additions & 0 deletions thunderbird-lightning-bin.PKGBUILD
@@ -0,0 +1,40 @@
# Maintainer: Raimar Bühmann <raimar (at-sign) buehmann (period) de>
# Contributor: Hugo Osvaldo Barrera <hugo@barrera.io>
# Contributor: Joel Goguen <jgoguen (at-sign) jgoguen (period) ca>

pkgname=thunderbird-lightning-bin
pkgver=4.0.0.1
pkgrel=1
pkgdesc="A calendar that's fully integrated into Thunderbird."
arch=('i686' 'x86_64')
groups=('office')
url="https://www.mozilla.org/en-US/projects/calendar/"
license=('MPL' 'GPL' 'LGPL')
depends=('thunderbird>=38' 'libnotify')
makedepends=()
options=(!strip)
provides=(lightning=${pkgver})
replaces=("lightning-bin")
conflicts=("lightning-bin")
# https://addons.mozilla.org/de/thunderbird/addon/lightning/versions/
source=(lightning-$pkgver.xpi::https://addons.mozilla.org/thunderbird/downloads/file/322408/lightning-${pkgver}-sm+tb-linux.xpi)
sha1sums=('3a467b149798d793c2487f4455f6865e950f1383')

package() {
mkdir -p ${pkgdir}/usr/lib/thunderbird/extensions/${pkgname}
cd ${pkgdir}/usr/lib/thunderbird/extensions/${pkgname}
bsdtar -x -f ${srcdir}/lightning-$pkgver.xpi

_emid=$(grep em:id install.rdf | tail -n 1 | sed 's/.*>\(.*\)<.*/\1/')
cd ..
mv ${pkgname} ${_emid}
cd ${_emid}
# fix minimum version
sed -i 's/<em:minVersion>38.0</<em:minVersion>38.0.0</' install.rdf

# Fix permissions
find -type d -exec chmod 0755 \{\} \+
find -type f -exec chmod 0644 \{\} \+
find -name '*.so' -exec chmod 0755 \{\} \+
chown -R root:root .
}
22 changes: 22 additions & 0 deletions thunderbird-lightning-bin.SRCINFO
@@ -0,0 +1,22 @@
pkgbase = thunderbird-lightning-bin
pkgdesc = A calendar that's fully integrated into Thunderbird.
pkgver = 4.0.0.1
pkgrel = 1
url = https://www.mozilla.org/en-US/projects/calendar/
arch = i686
arch = x86_64
groups = office
license = MPL
license = GPL
license = LGPL
depends = thunderbird>=38
depends = libnotify
provides = lightning=4.0.0.1
conflicts = lightning-bin
replaces = lightning-bin
options = !strip
source = lightning-4.0.0.1.xpi::https://addons.mozilla.org/thunderbird/downloads/file/322408/lightning-4.0.0.1-sm+tb-linux.xpi
sha1sums = 3a467b149798d793c2487f4455f6865e950f1383

pkgname = thunderbird-lightning-bin

0 comments on commit 1a308f0

Please sign in to comment.