|
@@ -41,10 +41,10 @@ ifeq (armhf,$(DEB_HOST_ARCH))
|
|
|
defines+=host_cpu=\"arm\" arm_use_neon=false
|
|
|
endif
|
|
|
|
|
|
-config_bundle=$(shell cat debian/ungoogled-config-bundle)
|
|
|
+config_bundle=debian/scripts/ungoogled-chromium/config_bundles/$(shell cat debian/ungoogled-config-bundle)
|
|
|
|
|
|
# add gn flags from config bundle
|
|
|
-defines+=$(shell debian/scripts/get-gnargs-shell debian/scripts/ungoogled-chromium/config_bundles/$(config_bundle))
|
|
|
+defines+=$(shell debian/scripts/get-gnargs-shell $(config_bundle))
|
|
|
|
|
|
# some notes about embedded libraries
|
|
|
# can't use system nss since net/third_party/nss is heavily patched
|
|
@@ -60,6 +60,8 @@ endif
|
|
|
flotpaths=/usr/share/javascript/jquery/*min.js \
|
|
|
/usr/share/javascript/jquery-flot/*min.js \
|
|
|
|
|
|
+buildkit_cli=debian/scripts/ungoogled-chromium/run_buildkit_cli.py
|
|
|
+
|
|
|
%:
|
|
|
dh $@
|
|
|
|
|
@@ -77,7 +79,7 @@ override_dh_auto_configure:
|
|
|
# strip out system third_party libraries
|
|
|
./debian/scripts/unbundle
|
|
|
# apply domain substitution
|
|
|
- if [ ! -e debian/scripts/ungoogled-chromium/domsubcache.tar.gz ]; then cd debian/scripts/ungoogled-chromium; python3 -m buildkit domains apply -b config_bundles/$(config_bundle) -c domsubcache.tar.gz ../../../; fi
|
|
|
+ if [ ! -e debian/scripts/ungoogled-chromium/domsubcache.tar.gz ]; then python3 $(buildkit_cli) domains apply -b $(config_bundle) -c domsubcache.tar.gz ../../../; fi
|
|
|
|
|
|
override_dh_auto_build-arch: out/Default/gn
|
|
|
./out/Default/gn gen out/Default --args="$(defines)" --fail-on-unused-args
|
|
@@ -89,7 +91,7 @@ override_dh_auto_build-indep: out/Default/gn
|
|
|
|
|
|
override_dh_prep:
|
|
|
# building is done by this step; remove domain substitution
|
|
|
- if [ -e debian/scripts/ungoogled-chromium/domsubcache.tar.gz ]; then cd debian/scripts/ungoogled-chromium; python3 -m buildkit domains revert -c domsubcache.tar.gz ../../../; fi
|
|
|
+ if [ -e debian/scripts/ungoogled-chromium/domsubcache.tar.gz ]; then python3 $(buildkit_cli) domains revert -c domsubcache.tar.gz ../../../; fi
|
|
|
dh_prep
|
|
|
|
|
|
override_dh_auto_install-arch:
|
|
@@ -141,7 +143,7 @@ removed=$(debvers).files-removed
|
|
|
seconds=$(debvers).seconds
|
|
|
|
|
|
get-orig-source:
|
|
|
- if [ ! -e debian/patches ]; then cd debian/scripts/ungoogled-chromium; python3 -m buildkit patches export -b config_bundles/$(config_bundle) ../../patches/; fi
|
|
|
+ if [ ! -e debian/patches ]; then python3 $(buildkit_cli) patches export -b $(config_bundle) ../../patches/; fi
|
|
|
wget -nv --show-progress -c $(url)/$(tarball) -O ../$(tarball)
|
|
|
cp /usr/bin/mk-origtargz debian/scripts
|
|
|
patch -p1 < debian/scripts/mk-origtargz.patch
|
|
@@ -150,7 +152,7 @@ get-orig-source:
|
|
|
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds
|
|
|
test ! -e $(extract) || rm -rf $(extract)
|
|
|
tar xf ../$(tarball)
|
|
|
- cd debian/scripts/ungoogled-chromium; python3 -m buildkit prune -b config_bundles/$(config_bundle) ../../../$(extract)
|
|
|
+ python3 $(buildkit_cli) prune -b $(config_bundle) ../../../$(extract)
|
|
|
echo $$(($$(date +%s) - $$(cat $(seconds)))) seconds
|
|
|
while read line; do rm -rf $$line; done < $(removed)
|
|
|
cd $(extract) && ../debian/scripts/check-upstream
|
|
@@ -165,7 +167,7 @@ get-orig-source:
|
|
|
|
|
|
setup-local-src:
|
|
|
mkdir ../download_cache || true
|
|
|
- cd debian/scripts/ungoogled-chromium; python3 -m buildkit downloads retrieve -b config_bundles/$(config_bundle) -c ../../../../download_cache
|
|
|
- cd debian/scripts/ungoogled-chromium; python3 -m buildkit downloads unpack -b config_bundles/$(config_bundle) -c ../../../../download_cache ../../../
|
|
|
- cd debian/scripts/ungoogled-chromium; python3 -m buildkit prune -b config_bundles/$(config_bundle) ../../../
|
|
|
- cd debian/scripts/ungoogled-chromium; python3 -m buildkit patches export -b config_bundles/$(config_bundle) ../../patches/; fi
|
|
|
+ python3 $(buildkit_cli) downloads retrieve -b $(config_bundle) -c ../../../../download_cache
|
|
|
+ python3 $(buildkit_cli) downloads unpack -b $(config_bundle) -c ../../../../download_cache ../../../
|
|
|
+ python3 $(buildkit_cli) prune -b $(config_bundle) ../../../
|
|
|
+ python3 $(buildkit_cli) patches export -b $(config_bundle) ../../patches/; fi
|