Since shpkg
1.3.0. an experimental update
function is implemented, this made it easy to add repos
requirement is git
, zip
, tar
The config file is in ~/.config/shpkg_repo.list
or $XDG_CONFIG_HOME/shpkg_repo.list
An example of repolist file
# this is a comment
https://github.com/shpkg/ports.git
https://foo.bar/buildscripts.zip
https://foo.bar/buildscripts.tar.xz
when adding repos, *.git, *.zip, *.tar
extension should be specified at the end to know what method is going to be used when fetching
When fetching buildscripts through git or tarball, buildscripts is being placed in ~/.shpkg/
If *.zip, *.tar
is being used, the contents are being extracted in ~/.shpkg/
However if the archive contains a subdirectory and the subdirectories contains all buildscripts. specify strip:
uri option in the repolist
An example:
https://github.com/shpkg/ports.git
strip:https://foo.bar/buildscripts-inside-subdirectories.zip
strip:https://foo.bar/buildscripts-inside-subdirectories.tar.xz
when strip:
is specified, it will be extracted in temporary directory then moves the buildscripts in ~/.shpkg/
if strip:
isn't specified, it will treat it as build script
Note that if strip:
was specified in git
url. it is being ignored, please see Repository Structure if creating your own shpkg
repo
If creating a shpkg
repo, the following directotu structure should be followed. in a nutshell:
shpkg-alternate-repo-root \
-- package1 \
-- SHPKG_BUILD
-- package2 \
-- SHPKG_BUILD
shpkg-alternate-repo-root
- the git repo name, represents as repository root. would be:
https://github.com/foo/shpkg-alternate-repo-root
If strip:
should not be specified:
buildscripts.tar.* \
-- package1 \
-- SHPKG_BUILD
-- package2 \
-- SHPKG_BUILD
If strip:
should be specified:
buildscripts-inside-subdirectories.tar.* \
-- subdirectory \
-- package1 \
-- SHPKG_BUILD
-- package2 \
-- SHPKG_BUILD
If strip:
should not be specified:
buildscripts.zip \
-- package1 \
-- SHPKG_BUILD
-- package2 \
-- SHPKG_BUILD
If strip:
should be specified:
buildscripts-inside-subdirectories.zip \
-- subdirectory \
-- package1 \
-- SHPKG_BUILD
-- package2 \
-- SHPKG_BUILD
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。