Skip to content

Commit e371580

Browse files
feat: enable debian support for foliate
Co-authored-by: silentJET85 <[email protected]>
1 parent 0c93705 commit e371580

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

01-main/packages/foliate

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
DEFVER=2
2-
CODENAMES_SUPPORTED="trixie sid noble oracular"
2+
CODENAMES_SUPPORTED="trixie sid focal jammy noble oracular"
33
ARCHS_SUPPORTED="amd64 arm64 armhf"
4-
get_github_releases "johnfactotum/foliate"
5-
if [ "${ACTION}" != prettylist ]; then
6-
URL="$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d '"' -f 4)"
7-
VERSION_PUBLISHED="$(cut -d '_' -f 2 <<< "${URL}")"
8-
fi
4+
5+
case ${UPSTREAM_ID} in
6+
ubuntu)
7+
PPA="ppa:apandada1/foliate"
8+
;;
9+
debian)
10+
get_github_releases "johnfactotum/foliate"
11+
if [ "${ACTION}" != prettylist ]; then
12+
URL="$(grep -m 1 "browser_download_url.*\.deb\"" "${CACHE_FILE}" | cut -d '"' -f 4)"
13+
VERSION_PUBLISHED="$(cut -d '_' -f 2 <<< "${URL}")"
14+
fi
15+
;;
16+
esac
17+
18+
919
PRETTY_NAME="Foliate"
1020
WEBSITE="https://johnfactotum.github.io/foliate/"
1121
SUMMARY="A simple and modern eBook viewer for Linux desktops."

0 commit comments

Comments
 (0)