pkg(common): add tar.xz helper

This commit is contained in:
Thomas Hobson 2021-02-27 19:50:23 +13:00
parent fb8ce57b60
commit bc0b9741cf
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ ${INFO_FILE}:
# Helpers
%/: %.tar.gz
cd ${BUILD_DIR} && tar xzf $(patsubst ${BUILD_DIR}%,%,$<)
%/: %.tar.xz
cd ${BUILD_DIR} && tar xf $(patsubst ${BUILD_DIR}%,%,$<)
%.json: %.jq
jq '$(shell tr '\n' '|' < $<).' <<< "{}" > $@