Commit cd228bb8 authored by Dmitry Smirnov's avatar Dmitry Smirnov

WebExtensions converson

parent a3f2c195
......@@ -4,7 +4,9 @@ Priority: optional
Standards-Version: 4.1.5
Maintainer: Debian Mozilla Extension Maintainers <pkg-mozext-maintainers@lists.alioth.debian.org>
Uploaders: Ximin Luo <infinity0@debian.org>
Build-Depends: debhelper (>= 11~), mozilla-devscripts (>= 0.16~)
Build-Depends: debhelper (>= 11~)
,jq
,mozilla-devscripts (>= 0.16~)
Homepage: https://addons.mozilla.org/en-US/firefox/addon/tree-style-tab/
Vcs-Git: https://salsa.debian.org/webext-team/tree-style-tab.git
Vcs-Browser: https://salsa.debian.org/webext-team/tree-style-tab
......@@ -12,9 +14,14 @@ Vcs-Browser: https://salsa.debian.org/webext-team/tree-style-tab
Package: xul-ext-treestyletab
Architecture: all
Depends: ${misc:Depends}, ${xpi:Depends}
,zip
Recommends: ${xpi:Recommends}
,firefox (>= 60)
Provides: ${xpi:Provides}
,firefox-tree-style-tab
,webext-tree-style-tab
Enhances: ${xpi:Enhances}
,firefox
Breaks: ${xpi:Breaks}
Description: Show browser tabs like a tree
Tree-style-tab is a Firefox/Iceweasel extension which provides tree-style tab
......
#debian/missing-sources usr/share/webext/tree-style-tab/
* usr/share/webext/tree-style-tab/
#! /bin/sh
set -e
set -u
webext="tree-style-tab"
if [ "$1" = "configure" ]; then
rm -f /usr/share/webext/${webext}.zip
cd /usr/share/webext/${webext} \
&& zip --quiet -9 ../${webext}.zip -r .
fi
#DEBHELPER#
#!/bin/sh
set -e
set -u
webext="tree-style-tab"
case "$1" in
remove|purge)
rm -f /usr/share/webext/${webext}.zip
;;
esac
#DEBHELPER#
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk
ID:=$(shell jq -r .applications.gecko.id manifest.json)
%:
dh $@ --with xul-ext --buildsystem xul_ext
dh $@
override_dh_auto_build:
@
override_dh_install:
dh_install -XLICENSE -XCOPYING
$(RM) -rv debian/*/usr/share/webext/*/debian
override_dh_auto_install:
install-xpi -x '*/*/license.txt' xul-ext-treestyletab.xpi
override_dh_link: $(info :: ID=$(ID))
dh_link -v \
/usr/share/webext/$(DEB_SOURCE).zip /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/$(ID).xpi
override_dh_installchangelogs:
dh_installchangelogs debian/upstream/changelog.html debian/upstream/changelog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment