summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d359d6b8fdec39a34e28fe91a378626a81e3a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Bruno Miguel <bruno@privacyrequired.com>

pkgname=thunderbird-extension-xnote-git
pkgver=4.0.1.8bb777c
pkgrel=1
pkgdesc="Persistent sticky notes for Thunderbird associated to mails. You can email them/print/copy to clipboard."
arch=('any')
url='https://github.com/xnotepp/xnote'
license=('GPL2')
depends=('thunderbird')
source=("git+${url}")
md5sums=('SKIP')

pkgver() {
	cd xnote
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)//;s/-/./g'
}

build() {
    cd "${srcdir}/xnote/src"
    export _archivefilename=$(grep id manifest.json | awk -F \" '{print $4}')
    bsdtar -caf ${srcdir}/$_archivefilename.zip *
}

package() {
    install -D -m644 $_archivefilename.zip ${pkgdir}/usr/lib/thunderbird/extensions/$_archivefilename.xpi
}