remove opt deps

This commit is contained in:
xiota 2024-04-19 07:07:48 +00:00
parent d089b7682f
commit 845d83d71f
6 changed files with 28 additions and 56 deletions

View file

@ -6,10 +6,6 @@ pkgbase = thorium-browser-bin
install = thorium-browser.install
arch = x86_64
license = BSD
optdepends = gnome-keyring: for storing passwords in GNOME keyring
optdepends = kdialog: for file dialogs in KDE
optdepends = kwallet5: for storing passwords in KWallet
optdepends = pipewire: WebRTC desktop sharing under Wayland
noextract = thorium-browser_122.0.6261.132_SSE3.deb
options = !emptydirs
options = !strip

View file

@ -3,7 +3,7 @@
# Contributor: Dominik Adrian Grzywak <starterx4 at gmail dot com>
# options
if [ -n "$_srcinfo" ] || [ -n "$_pkgver" ] ; then
if [ -n "$_srcinfo" ] || [ -n "$_pkgver" ]; then
: ${_autoupdate:=false}
else
: ${_autoupdate:=true}
@ -25,12 +25,6 @@ _main_package() {
depends=()
makedepends=()
optdepends=(
'gnome-keyring: for storing passwords in GNOME keyring'
'kdialog: for file dialogs in KDE'
'kwallet5: for storing passwords in KWallet'
'pipewire: WebRTC desktop sharing under Wayland'
)
options=('!emptydirs' '!strip')
install="$_pkgname.install"
@ -49,7 +43,7 @@ _main_package() {
# common functions
prepare() {
install -Dvm644 /dev/stdin "$_pkgname.sh" <<END
install -Dvm644 /dev/stdin "$_pkgname.sh" << END
#!/usr/bin/env bash
# check microprocessor architecture level
@ -148,7 +142,7 @@ package() {
# clean-up
echo " -> Removing Debian Cron job, duplicate product logos and menu directory..."
rm -r -- \
"$pkgdir/opt/chromium.org" \
"$pkgdir/opt/chromium.org" \
"$pkgdir/etc/cron.daily/" \
"$pkgdir/usr/share/doc/" \
"$pkgdir/opt/$_pkgname/cron/" \
@ -160,7 +154,7 @@ package() {
_update_version() {
: ${_pkgver:=${pkgver%%.r*}}
if [[ "${_autoupdate::1}" != "t" ]] ; then
if [[ "${_autoupdate::1}" != "t" ]]; then
return
fi
@ -174,7 +168,7 @@ _update_version() {
local _pkgver_new="${_tag#M}"
# update _pkgver
if [ "$_pkgver" != "${_pkgver_new:?}" ] ; then
if [ "$_pkgver" != "${_pkgver_new:?}" ]; then
_pkgver="${_pkgver_new:?}"
fi
}

View file

@ -1,7 +1,7 @@
# Maintainer:
# options
if [ -n "$_srcinfo" ] || [ -n "$_pkgver" ] ; then
if [ -n "$_srcinfo" ] || [ -n "$_pkgver" ]; then
: ${_autoupdate:=false}
else
: ${_autoupdate:=true}
@ -23,12 +23,6 @@ _main_package() {
depends=()
makedepends=()
optdepends=(
'gnome-keyring: for storing passwords in GNOME keyring'
'kdialog: for file dialogs in KDE'
'kwallet5: for storing passwords in KWallet'
'pipewire: WebRTC desktop sharing under Wayland'
)
options=('!emptydirs' '!strip' '!debug')
@ -46,7 +40,7 @@ _main_package() {
# common functions
prepare() {
install -Dvm644 /dev/stdin "$_pkgname.sh" <<END
install -Dvm644 /dev/stdin "$_pkgname.sh" << END
#!/usr/bin/env bash
# check microprocessor architecture level
@ -181,7 +175,7 @@ package() {
# clean-up
echo " -> Removing Debian Cron job, duplicate product logos and menu directory..."
rm -r -- \
"$pkgdir/opt/chromium.org" \
"$pkgdir/opt/chromium.org" \
"$pkgdir/etc/cron.daily/" \
"$pkgdir/usr/share/doc/" \
"$pkgdir/opt/$_pkgname/cron/" \
@ -193,7 +187,7 @@ package() {
_update_version() {
: ${_pkgver:=${pkgver%%.r*}}
if [[ "${_autoupdate::1}" != "t" ]] ; then
if [[ "${_autoupdate::1}" != "t" ]]; then
return
fi
local _blacklist _response _tags _tag _pkgver_new
@ -207,14 +201,14 @@ _update_version() {
| sed -E 's@^.*/releases/tag/(.*)".*$@\1@' \
| grep -Ev '[a-z]{2}'
)
for i in "${_blacklist[@]}" ; do
_tags=${_tags/$i}
for i in "${_blacklist[@]}"; do
_tags=${_tags/$i/}
done
_tag=$(printf '%s' "$_tags" | sort -rV | head -1)
_pkgver_new="${_tag#M}"
# update _pkgver
if [ "$_pkgver" != "${_pkgver_new:?}" ] ; then
if [ "$_pkgver" != "${_pkgver_new:?}" ]; then
_pkgver="${_pkgver_new:?}"
fi
}

View file

@ -1,7 +1,7 @@
# Maintainer:
# options
if [ -n "$_srcinfo" ] || [ -n "$_pkgver" ] ; then
if [ -n "$_srcinfo" ] || [ -n "$_pkgver" ]; then
: ${_autoupdate:=false}
else
: ${_autoupdate:=true}
@ -23,12 +23,6 @@ _main_package() {
depends=()
makedepends=()
optdepends=(
'gnome-keyring: for storing passwords in GNOME keyring'
'kdialog: for file dialogs in KDE'
'kwallet5: for storing passwords in KWallet'
'pipewire: WebRTC desktop sharing under Wayland'
)
options=('!emptydirs' '!strip' '!debug')
@ -46,7 +40,7 @@ _main_package() {
# common functions
prepare() {
install -Dvm644 /dev/stdin "$_pkgname.sh" <<END
install -Dvm644 /dev/stdin "$_pkgname.sh" << END
#!/usr/bin/env bash
# check microprocessor architecture level
@ -181,7 +175,7 @@ package() {
# clean-up
echo " -> Removing Debian Cron job, duplicate product logos and menu directory..."
rm -r -- \
"$pkgdir/opt/chromium.org" \
"$pkgdir/opt/chromium.org" \
"$pkgdir/etc/cron.daily/" \
"$pkgdir/usr/share/doc/" \
"$pkgdir/opt/$_pkgname/cron/" \
@ -193,7 +187,7 @@ package() {
_update_version() {
: ${_pkgver:=${pkgver%%.r*}}
if [[ "${_autoupdate::1}" != "t" ]] ; then
if [[ "${_autoupdate::1}" != "t" ]]; then
return
fi
local _blacklist _response _tags _tag _pkgver_new
@ -209,14 +203,14 @@ _update_version() {
| sed -E 's@^.*/releases/tag/(.*)".*$@\1@' \
| grep -Ev '[a-z]{2}'
)
for i in "${_blacklist[@]}" ; do
_tags=${_tags/$i}
for i in "${_blacklist[@]}"; do
_tags=${_tags/$i/}
done
_tag=$(printf '%s' "$_tags" | sort -rV | head -1)
_pkgver_new="${_tag#M}"
# update _pkgver
if [ "$_pkgver" != "${_pkgver_new:?}" ] ; then
if [ "$_pkgver" != "${_pkgver_new:?}" ]; then
_pkgver="${_pkgver_new:?}"
fi
}

View file

@ -1,7 +1,7 @@
# Maintainer:
# options
if [ -n "$_srcinfo" ] || [ -n "$_pkgver" ] ; then
if [ -n "$_srcinfo" ] || [ -n "$_pkgver" ]; then
: ${_autoupdate:=false}
else
: ${_autoupdate:=true}
@ -23,12 +23,6 @@ _main_package() {
depends=()
makedepends=()
optdepends=(
'gnome-keyring: for storing passwords in GNOME keyring'
'kdialog: for file dialogs in KDE'
'kwallet5: for storing passwords in KWallet'
'pipewire: WebRTC desktop sharing under Wayland'
)
options=('!emptydirs' '!strip' '!debug')
@ -46,7 +40,7 @@ _main_package() {
# common functions
prepare() {
install -Dvm644 /dev/stdin "$_pkgname.sh" <<END
install -Dvm644 /dev/stdin "$_pkgname.sh" << END
#!/usr/bin/env bash
# check microprocessor architecture level
@ -181,7 +175,7 @@ package() {
# clean-up
echo " -> Removing Debian Cron job, duplicate product logos and menu directory..."
rm -r -- \
"$pkgdir/opt/chromium.org" \
"$pkgdir/opt/chromium.org" \
"$pkgdir/etc/cron.daily/" \
"$pkgdir/usr/share/doc/" \
"$pkgdir/opt/$_pkgname/cron/" \
@ -193,7 +187,7 @@ package() {
_update_version() {
: ${_pkgver:=${pkgver%%.r*}}
if [[ "${_autoupdate::1}" != "t" ]] ; then
if [[ "${_autoupdate::1}" != "t" ]]; then
return
fi
local _blacklist _response _tags _tag _pkgver_new
@ -207,14 +201,14 @@ _update_version() {
| sed -E 's@^.*/releases/tag/(.*)".*$@\1@' \
| grep -Ev '[a-z]{2}'
)
for i in "${_blacklist[@]}" ; do
_tags=${_tags/$i}
for i in "${_blacklist[@]}"; do
_tags=${_tags/$i/}
done
_tag=$(printf '%s' "$_tags" | sort -rV | head -1)
_pkgver_new="${_tag#M}"
# update _pkgver
if [ "$_pkgver" != "${_pkgver_new:?}" ] ; then
if [ "$_pkgver" != "${_pkgver_new:?}" ]; then
_pkgver="${_pkgver_new:?}"
fi
}

View file

@ -4,11 +4,11 @@ msg_blue() {
}
note1() {
printf "${BLUE}==>${YELLOW} NOTE:${BOLD} $1${ALL_OFF}\n"
printf "${BLUE}==>${YELLOW} NOTE:${WHITE} $1${ALL_OFF}\n"
}
note2() {
printf "${BLUE}==> ${BOLD} $1${ALL_OFF}\n"
printf "${BLUE}==> ${WHITE} $1${ALL_OFF}\n"
}
ALL_OFF="$(tput sgr0)"