Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix merge of #636 and #637 #677

Merged
merged 1 commit into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions 01-main/packages/cronopete
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
DEFVER=1
CODENAMES_SUPPORTED="sid bullseye jammy focal"
WEBSITE="https://www.rastersoft.com/programas/cronopete.html"
get_website "https://www.rastersoft.com/programas/cronopete.html"
if [ "${ACTION}" != "prettylist" ]; then
VERSION_PUBLISHED="$(curl -s $WEBSITE | grep "Current version" | head -n1 | cut -d ' ' -f3)"
VERSION_PUBLISHED="$(grep "Current version" "${CACHE_FILE}" | head -n1 | cut -d ' ' -f3)"
fi
URL="https://www.rastersoft.com/descargas/cronopete/cronopete-${UPSTREAM_CODENAME}_${VERSION_PUBLISHED}-${UPSTREAM_ID}1_amd64.deb"
PRETTY_NAME="Cronopete"
WEBSITE="https://www.rastersoft.com/programas/cronopete.html"
SUMMARY="A backup utility for Linux, modeled after Apple's Time Machine."
4 changes: 2 additions & 2 deletions 01-main/packages/deskcut
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEFVER=1
get_github_releases "https://api.github.com/repos/NayamAmarshe/DeskCut/releases/latest"
get_github_releases "NayamAmarshe/DeskCut" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*amd64\.deb\"" "${CACHE_DIR}/${APP}.json" | head -n1 | cut -d'"' -f4)
URL=$(grep "browser_download_url.*amd64\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed 's|^stable-||')"
fi
PRETTY_NAME="DeskCut"
Expand Down
4 changes: 2 additions & 2 deletions 01-main/packages/frostwire
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEFVER=1
get_github_releases "https://api.github.com/repos/frostwire/frostwire/releases/latest"
get_github_releases "frostwire/frostwire" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*amd64\.deb\"" "${CACHE_DIR}/${APP}.json" | head -n1 | cut -d'"' -f4)
URL=$(grep "browser_download_url.*amd64\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'-' -f3)"
fi
PRETTY_NAME="FrostWire"
Expand Down
6 changes: 3 additions & 3 deletions 01-main/packages/homeassistant-supervised
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
DEFVER=1
get_github_releases "https://api.github.com/repos/home-assistant/supervised-installer/releases/latest"
get_github_releases "home-assistant/supervised-installer" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*\.deb\"" "${CACHE_DIR}/${APP}.json" | cut -d'"' -f4)
URL=$(grep "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
fi
PRETTY_NAME="Home Assistant Supervised"
WEBSITE="https://github.com/home-assistant/supervised-installer"
SUMMARY="This is Home Assistant supervised installer, that provides the full Home Assistant experience on a regular operating system."
SUMMARY="This is Home Assistant supervised installer, that provides the full Home Assistant experience on a regular operating system."
3 changes: 2 additions & 1 deletion 01-main/packages/iriunwebcam
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DEFVER=1
get_website "https://iriun.com/"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(curl -s "https://iriun.com/" | grep .deb | head -n1 | cut -d '"' -f 4)"
URL="$(grep .deb "${CACHE_FILE}" | head -n1 | cut -d '"' -f 4)"
VERSION_PUBLISHED="$(basename ${URL} .deb | cut -d '-' -f 2)"
fi
PRETTY_NAME="Iriun Webcam"
Expand Down
3 changes: 2 additions & 1 deletion 01-main/packages/master-pdf-editor-5
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
DEFVER=1
CODENAMES_SUPPORTED="bionic bullseye buster focal jammy"
get_website "https://code-industry.net/get-master-pdf-editor-for-ubuntu/?download"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(curl -s -S "https://code-industry.net/get-master-pdf-editor-for-ubuntu/?download" | grep -Eo "https://code-industry.net/public/.*\.deb" | uniq)
URL=$(grep -Eo "https://code-industry.net/public/.*\.deb" "${CACHE_FILE}" | uniq)
VERSION_PUBLISHED="$(echo "${URL}" | sed 's/^.*editor-//;s/-qt5.x86_64.*$//')"
fi
PRETTY_NAME="Master PDF Editor"
Expand Down
3 changes: 2 additions & 1 deletion 01-main/packages/mediathekview
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
DEFVER=1
ARCHS_SUPPORTED="amd64 armhf"
get_website "https://mediathekview.de/changelog/"
if [ "${ACTION}" != "prettylist" ]; then
VERSION_PUBLISHED="$(curl -s https://mediathekview.de/changelog/ | grep \>Version | head -n1 | cut -d ' ' -f5 | cut -d '<' -f1)"
VERSION_PUBLISHED="$(grep \>Version "${CACHE_FILE}" | head -n1 | cut -d ' ' -f5 | cut -d '<' -f1)"
fi
case ${HOST_ARCH} in
amd64) URL="https://download.mediathekview.de/stabil/MediathekView-latest-linux.deb";;
Expand Down
6 changes: 3 additions & 3 deletions 01-main/packages/os-agent
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
DEFVER=1
get_github_releases "https://api.github.com/repos/home-assistant/os-agent/releases/latest"
get_github_releases "home-assistant/os-agent" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*x86_64\.deb\"" "${CACHE_DIR}/${APP}.json" | head -n1 | cut -d'"' -f4)"
URL="$(grep "browser_download_url.*x86_64\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)"
VERSION_PUBLISHED="$(echo ${URL} | cut -d'_' -f2)"
fi
PRETTY_NAME="Agent for Home Assistant OS"
WEBSITE="https://github.com/home-assistant/os-agent"
SUMMARY="This is the OS Agent for Home Assistant. It is used for Home Assistant OS and Home Assistant Supervised installation types and it allows the Home Assistant Supervisor to communicate with the host operating system."
SUMMARY="This is the OS Agent for Home Assistant. It is used for Home Assistant OS and Home Assistant Supervised installation types and it allows the Home Assistant Supervisor to communicate with the host operating system."
4 changes: 2 additions & 2 deletions 01-main/packages/sunshine
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEFVER=1
get_github_releases "https://api.github.com/repos/LizardByte/Sunshine/releases/latest"
get_github_releases "LizardByte/Sunshine" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep "browser_download_url.*\.deb\"" "${CACHE_DIR}/${APP}.json" | head -n1 | cut -d'"' -f4)
URL=$(grep "browser_download_url.*\.deb\"" "${CACHE_FILE}" | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | sed 's|^v||')"
fi
PRETTY_NAME="Sunshine"
Expand Down
4 changes: 2 additions & 2 deletions EXTREPO.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The environment variables available to the package definition file are the follo
* `UPSTREAM_RELEASE`: The release version of the upstream distribution.
* `ACTION`: The command being executed by `deb-get`. Supported values are `update`, `upgrade`, `show`, `install`, `reinstall`, `remove`, `purge`, `prettylist` and `fix-installed`. `ACTION` for `csvlist` is `prettylist`.
* `APP`: The name of the package.
* `CACHE_FILE`: The path to the cached file for `github` packages.
* `CACHE_FILE`: The path to the cached file for `website` and `github` packages.

The helper functions available to the package definition file are the following:

Expand Down Expand Up @@ -162,7 +162,7 @@ SUMMARY=""
```bash
DEFVER=1
ARCHS_SUPPORTED="amd64 arm64 armhf"
CODENAMES_SUPPORTED="buster bullseye bookworm sid focal jammy kinetic"
CODENAMES_SUPPORTED="buster bullseye bookworm sid focal jammy kinetic lunar"
if [ "${ACTION}" != prettylist ]; then
URL="$(unroll_url "<website>")"
VERSION_PUBLISHED="$(echo "${URL}" | cut -d <delimiter> -f <field>)"
Expand Down
2 changes: 1 addition & 1 deletion deb-get
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ function validate_deb() {
elif [ -n "${PPA}" ]; then
METHOD="ppa"
else
if { { [ "${METHOD}" = github ] && [ -e "${CACHE_FILE}" ]; } || { [ "${METHOD}" == website ] && [ -e "${CACHE_FILE}" ]; } || [ "${METHOD}" == direct ]; } &&
if { { { [ "${METHOD}" == github ] || [ "${METHOD}" == website ]; } && [ -e "${CACHE_FILE}" ]; } || [ "${METHOD}" == direct ]; } &&
{ [ "${ACTION}" != "prettylist" ] && [ "${ACTION}" != "remove" ] && [ "${ACTION}" != "purge" ]; } &&
{ [ -z "${URL}" ] || [ -z "${VERSION_PUBLISHED}" ]; }; then
fancy_message error "Missing required information of ${METHOD} package ${APP}:"
Expand Down