blob: a01f899245af5c0eceb711b414d006b78ef0d07c (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Kamil Ćliwak <cameel2@gmail.com>
# Maintainer: Plaunarome <plaunarome@protonmail.com>
_name="multi-account-containers"
_l10n_version=417e6294ed767914b617a5e56ccbe67482df181c
pkgname=firefox-extension-multi-account-containers
pkgver=8.1.3
pkgrel=1
pkgdesc="Keep parts of your online life separated into color-coded tabs"
arch=("any")
url="https://github.com/mozilla/${_name}"
license=("MPL2")
groups=("firefox-addons")
makedepends=("npm" "unzip" "zip")
source=(
"${url}/archive/${pkgver}/${_name}-${pkgver}.tar.gz"
"https://github.com/mozilla-l10n/${_name}-l10n/archive/${_l10n_version}.tar.gz"
)
sha512sums=(
'e8649d3e7e3d6e4d2b94aaa45a212d579ec532779f4d2cfcf4db758740bbe99596dd4d876557070aeaca9092fcdb984582b6798bde72c21ffc6d3d484873091e'
'a41d5e8cf691271587dbe224d78b4b97db2f86c76094c6449eb36a72f7b42e9703a990a9ea2429f37d271f03146106270b67b0f5dfa1d1315a414bcb89ae0872'
)
build() {
cd "${_name}-${pkgver}"
npm install --legacy-peer-deps
cd src
# Locale files are in a submodule. We do not have git info here so we have to insert it manually.
rm -rf _locales
ln -s "../../${_name}-l10n-${_l10n_version}" "_locales"
rm --force --recursive web-ext-artifacts
../node_modules/web-ext/bin/web-ext.js build --filename extension.zip --overwrite-dest
cd web-ext-artifacts
unzip extension.zip
rm extension.zip
find -exec touch --date @0 {} \;
zip "${srcdir}/extension.zip" -X --filesync --recurse-paths -- *
}
check() {
cd "${_name}-${pkgver}"
rm --force --recursive src/web-ext-artifacts
npm run test:once
}
package() {
install -D --mode 644 -- extension.zip \
"${pkgdir}/usr/lib/firefox/browser/extensions/@testpilot-containers.xpi"
}
|