blob: 89941ae3a7cc275d3a2b6b470b04dc0de64de79a (
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
29
30
31
32
|
# Maintainer: Dct Mei <dctxmei@yandex.com>
pkgname=firefox-extension-tab-stash
_pkgname=tab-stash
pkgver=3.0.1
pkgrel=1
pkgdesc="Firefox extension to save and restore tabs as bookmarks"
arch=('any')
url="https://github.com/josh-berry/tab-stash"
license=('MPL2')
#groups=('firefox-addons')
depends=('firefox')
makedepends=('git' 'inkscape' 'nodejs' 'npm' 'p7zip' 'rsync' 'strip-nondeterminism')
source=("git+${url}.git#tag=v${pkgver}")
sha256sums=('3ecbdfa4cc13a2e0f218da75d455900760dcfa2dee7fe78338eb97c4ffaf5919')
build() {
cd "${srcdir}"/"${_pkgname}"/
make
}
package() {
_extension_id="$(sed -n 's/.*"id": "\(.*\)".*/\1/p' ${_pkgname}/assets/manifest.json)"
_extension_dest="${pkgdir}/usr/lib/firefox/browser/extensions/${_extension_id}"
cd "${srcdir}"/"${_pkgname}"/
cd dist/
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
7z a -mx=9 ../"${_extension_id}.zip" .
strip-nondeterminism -t zip ../"${_extension_id=}.zip"
install -Dm 644 ../"${_extension_id}.zip" "${_extension_dest}.xpi"
}
|