Automatic package updates
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
name='discord-bin'
|
name='discord-bin'
|
||||||
version='0.0.101'
|
version=0.0.102
|
||||||
release='1'
|
release=1
|
||||||
desc='All-in-one voice and text chat for gamers'
|
desc='All-in-one voice and text chat for gamers'
|
||||||
desk_ru='Всё в одном голосовое и текстовое общение для игроков'
|
desk_ru='Всё в одном голосовое и текстовое общение для игроков'
|
||||||
homepage='https://discord.com/'
|
homepage='https://discord.com/'
|
||||||
@ -11,51 +11,51 @@ provides=('discord')
|
|||||||
conflicts=('discord')
|
conflicts=('discord')
|
||||||
|
|
||||||
deps=(
|
deps=(
|
||||||
'libnotify'
|
'libnotify'
|
||||||
'libXss'
|
'libXss'
|
||||||
'nspr'
|
'nspr'
|
||||||
'nss'
|
'nss'
|
||||||
'gtk3'
|
'gtk3'
|
||||||
'pulseaudio-libs'
|
'pulseaudio-libs'
|
||||||
'libappindicator-gtk3'
|
'libappindicator-gtk3'
|
||||||
'xdg-utils'
|
'xdg-utils'
|
||||||
)
|
)
|
||||||
deps_redos=(
|
deps_redos=(
|
||||||
'libnotify'
|
'libnotify'
|
||||||
'libXScrnSaver'
|
'libXScrnSaver'
|
||||||
'nspr'
|
'nspr'
|
||||||
'nss'
|
'nss'
|
||||||
'gtk3'
|
'gtk3'
|
||||||
'pulseaudio-libs'
|
'pulseaudio-libs'
|
||||||
'libappindicator-gtk3'
|
'libappindicator-gtk3'
|
||||||
'xdg-utils'
|
'xdg-utils'
|
||||||
)
|
)
|
||||||
deps_arch=(
|
deps_arch=(
|
||||||
'libnotify'
|
'libnotify'
|
||||||
'libxss'
|
'libxss'
|
||||||
'nspr'
|
'nspr'
|
||||||
'nss'
|
'nss'
|
||||||
'gtk3'
|
'gtk3'
|
||||||
'libpulse'
|
'libpulse'
|
||||||
'libappindicator-gtk3'
|
'libappindicator-gtk3'
|
||||||
'xdg-utils'
|
'xdg-utils'
|
||||||
)
|
)
|
||||||
deps_altlinux=(
|
deps_altlinux=(
|
||||||
'gtk3'
|
'gtk3'
|
||||||
'xdg-utils'
|
'xdg-utils'
|
||||||
'pulseaudio'
|
'pulseaudio'
|
||||||
'libnss'
|
'libnss'
|
||||||
)
|
)
|
||||||
|
|
||||||
sources=(
|
sources=(
|
||||||
"https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz"
|
"https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz"
|
||||||
"https://discordapp.com/terms"
|
"https://discordapp.com/terms"
|
||||||
"https://discordapp.com/licenses"
|
"https://discordapp.com/licenses"
|
||||||
)
|
)
|
||||||
checksums=(
|
checksums=(
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
)
|
)
|
||||||
|
|
||||||
scripts=(
|
scripts=(
|
||||||
@ -63,31 +63,30 @@ scripts=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd Discord
|
cd Discord
|
||||||
sed -i "s|Exec=.*|Exec=/usr/bin/discord|" discord.desktop
|
sed -i "s|Exec=.*|Exec=/usr/bin/discord|" discord.desktop
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -d "$pkgdir"/opt/discord
|
install -d "$pkgdir"/opt/discord
|
||||||
cp -a Discord/. "$pkgdir"/opt/discord
|
cp -a Discord/. "$pkgdir"/opt/discord
|
||||||
|
|
||||||
rm "$pkgdir"/opt/discord/postinst.sh
|
rm "$pkgdir"/opt/discord/postinst.sh
|
||||||
|
|
||||||
install -d "$pkgdir"/usr/bin
|
install -d "$pkgdir"/usr/bin
|
||||||
ln -s /opt/discord/Discord "$pkgdir"/usr/bin/discord
|
ln -s /opt/discord/Discord "$pkgdir"/usr/bin/discord
|
||||||
|
|
||||||
install-desktop "$pkgdir"/opt/discord/discord.desktop
|
install-desktop "$pkgdir"/opt/discord/discord.desktop
|
||||||
|
|
||||||
install -Dm644 "$pkgdir"/opt/discord/discord.png "$pkgdir"/usr/share/icons/hicolor/256x256/apps/discord.png
|
install -Dm644 "$pkgdir"/opt/discord/discord.png "$pkgdir"/usr/share/icons/hicolor/256x256/apps/discord.png
|
||||||
|
|
||||||
install-license ./terms ./discord/LICENSE.html
|
install-license ./terms ./discord/LICENSE.html
|
||||||
install-license ./licenses discord/OSS-LICENSES.html
|
install-license ./licenses discord/OSS-LICENSES.html
|
||||||
}
|
}
|
||||||
|
|
||||||
files() {
|
files() {
|
||||||
printf '"%s" ' ./opt/discord/**/*
|
printf '"%s" ' ./opt/discord/**/*
|
||||||
echo ./usr/bin/discord
|
echo ./usr/bin/discord
|
||||||
echo ./usr/share/applications/discord.desktop
|
echo ./usr/share/applications/discord.desktop
|
||||||
echo ./usr/share/icons/hicolor/256x256/apps/discord.png
|
echo ./usr/share/icons/hicolor/256x256/apps/discord.png
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name='firefox-bin'
|
name='firefox-bin'
|
||||||
version='140.0.2'
|
version=140.0.4
|
||||||
release='1'
|
release=1
|
||||||
desc='Fast, Private & Safe Web Browser.'
|
desc='Fast, Private & Safe Web Browser.'
|
||||||
desc_ru='Быстрый, конфиденциальный и безопасный веб-браузер.'
|
desc_ru='Быстрый, конфиденциальный и безопасный веб-браузер.'
|
||||||
homepage='https://www.mozilla.org/firefox/'
|
homepage='https://www.mozilla.org/firefox/'
|
||||||
@ -12,39 +12,39 @@ provides=('firefox')
|
|||||||
conflicts=('firefox' 'firefox-git')
|
conflicts=('firefox' 'firefox-git')
|
||||||
|
|
||||||
deps=('gtk3'
|
deps=('gtk3'
|
||||||
'libXt'
|
'libXt'
|
||||||
'mailcap'
|
'mailcap'
|
||||||
'dbus-glib'
|
'dbus-glib'
|
||||||
'nss'
|
'nss'
|
||||||
)
|
)
|
||||||
|
|
||||||
deps_debian=('libgtk-3-dev'
|
deps_debian=('libgtk-3-dev'
|
||||||
'libxt6'
|
'libxt6'
|
||||||
'mailcap'
|
'mailcap'
|
||||||
'libdbus-glib-1-2'
|
'libdbus-glib-1-2'
|
||||||
'libnss3'
|
'libnss3'
|
||||||
)
|
)
|
||||||
|
|
||||||
opt_deps=('ffmpeg: H264/AAC/MP3 decoding'
|
opt_deps=('ffmpeg: H264/AAC/MP3 decoding'
|
||||||
'NetworkManager: Location detection via available WiFi networks'
|
'NetworkManager: Location detection via available WiFi networks'
|
||||||
'libnotify: Notification integration'
|
'libnotify: Notification integration'
|
||||||
'speech-dispatcher: Text-to-Speech'
|
'speech-dispatcher: Text-to-Speech'
|
||||||
'hunspell-en-US: Spell checking, American English'
|
'hunspell-en-US: Spell checking, American English'
|
||||||
'hunspell-ru: Spell checking, Russian'
|
'hunspell-ru: Spell checking, Russian'
|
||||||
)
|
)
|
||||||
|
|
||||||
opt_deps_debian=('ffmpeg: H264/AAC/MP3 decoding'
|
opt_deps_debian=('ffmpeg: H264/AAC/MP3 decoding'
|
||||||
'network-manager: Location detection via available WiFi networks'
|
'network-manager: Location detection via available WiFi networks'
|
||||||
'libnotify-bin: Notification integration'
|
'libnotify-bin: Notification integration'
|
||||||
'speech-dispatcher: Text-to-Speech'
|
'speech-dispatcher: Text-to-Speech'
|
||||||
'hunspell-en-us: Spell checking, American English'
|
'hunspell-en-us: Spell checking, American English'
|
||||||
'hunspell-ru: Spell checking, Russian'
|
'hunspell-ru: Spell checking, Russian'
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $version == *.0 ]]; then
|
if [[ $version == *.0 ]]; then
|
||||||
ver="${version%.*}"
|
ver="${version%.*}"
|
||||||
else
|
else
|
||||||
ver="$version"
|
ver="$version"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sources_amd64=("https://download.mozilla.org/?product=firefox-${ver}&os=linux64&lang=ru")
|
sources_amd64=("https://download.mozilla.org/?product=firefox-${ver}&os=linux64&lang=ru")
|
||||||
@ -60,38 +60,38 @@ scripts=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $srcdir
|
cd $srcdir
|
||||||
# Create directories
|
# Create directories
|
||||||
mkdir -p "$pkgdir"/usr/bin
|
mkdir -p "$pkgdir"/usr/bin
|
||||||
mkdir -p "$pkgdir"/usr/share/applications
|
mkdir -p "$pkgdir"/usr/share/applications
|
||||||
mkdir -p "$pkgdir"/opt
|
mkdir -p "$pkgdir"/opt
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
cp -r firefox/ "$pkgdir"/opt/firefox
|
cp -r firefox/ "$pkgdir"/opt/firefox
|
||||||
|
|
||||||
# Launchers
|
# Launchers
|
||||||
install -m755 $scriptdir/firefox.sh "$pkgdir"/usr/bin/firefox
|
install -m755 $scriptdir/firefox.sh "$pkgdir"/usr/bin/firefox
|
||||||
|
|
||||||
# Desktops
|
# Desktops
|
||||||
install -m644 $scriptdir/*.desktop "$pkgdir"/usr/share/applications/
|
install -m644 $scriptdir/*.desktop "$pkgdir"/usr/share/applications/
|
||||||
|
|
||||||
# Icons
|
# Icons
|
||||||
for i in 16x16 32x32 48x48 64x64 128x128; do
|
for i in 16x16 32x32 48x48 64x64 128x128; do
|
||||||
install -d "$pkgdir"/usr/share/icons/hicolor/$i/apps/
|
install -d "$pkgdir"/usr/share/icons/hicolor/$i/apps/
|
||||||
ln -s /opt/firefox/browser/chrome/icons/default/default${i/x*}.png \
|
ln -s /opt/firefox/browser/chrome/icons/default/default${i/x*/}.png \
|
||||||
"$pkgdir"/usr/share/icons/hicolor/$i/apps/firefox.png
|
"$pkgdir"/usr/share/icons/hicolor/$i/apps/firefox.png
|
||||||
done
|
done
|
||||||
|
|
||||||
ln -sf /usr/lib/libnssckbi.so "$pkgdir"/opt/firefox/libnssckbi.so
|
ln -sf /usr/lib/libnssckbi.so "$pkgdir"/opt/firefox/libnssckbi.so
|
||||||
|
|
||||||
# Disable update checks
|
# Disable update checks
|
||||||
mkdir "$pkgdir"/opt/firefox/distribution
|
mkdir "$pkgdir"/opt/firefox/distribution
|
||||||
install -m644 $scriptdir/policies.json "$pkgdir"/opt/firefox/distribution/
|
install -m644 $scriptdir/policies.json "$pkgdir"/opt/firefox/distribution/
|
||||||
}
|
}
|
||||||
|
|
||||||
files() {
|
files() {
|
||||||
printf '"%s" ' ./opt/firefox/**/*
|
printf '"%s" ' ./opt/firefox/**/*
|
||||||
printf '"%s" ' ./usr/share/icons/hicolor/*/apps/*
|
printf '"%s" ' ./usr/share/icons/hicolor/*/apps/*
|
||||||
echo ./usr/bin/firefox
|
echo ./usr/bin/firefox
|
||||||
echo ./usr/share/applications/firefox.desktop
|
echo ./usr/share/applications/firefox.desktop
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name='telegram-desktop-bin'
|
name='telegram-desktop-bin'
|
||||||
version='5.15.4'
|
version=5.16.4
|
||||||
release='1'
|
release=1
|
||||||
desc='Official desktop version of Telegram messaging app - Static binaries'
|
desc='Official desktop version of Telegram messaging app - Static binaries'
|
||||||
desc_ru='Официальный клиент для Telegram мессенджера - статические бинарники'
|
desc_ru='Официальный клиент для Telegram мессенджера - статические бинарники'
|
||||||
homepage='https://github.com/telegramdesktop/tdesktop'
|
homepage='https://github.com/telegramdesktop/tdesktop'
|
||||||
@ -18,21 +18,21 @@ deps_rosa=('desktop-file-utils' 'glib2' 'hicolor-icon-theme' 'lib64dbus-1_3' 'li
|
|||||||
build_deps=('chrpath')
|
build_deps=('chrpath')
|
||||||
|
|
||||||
opt_deps=(
|
opt_deps=(
|
||||||
'libappindicator-gtk2: скрыть Telegram в панели задач в среде рабочего стола на основе GTK2'
|
'libappindicator-gtk2: скрыть Telegram в панели задач в среде рабочего стола на основе GTK2'
|
||||||
'libappindicator-gtk3: скрыть Telegram в панели задач в среде рабочего стола на основе GTK3'
|
'libappindicator-gtk3: скрыть Telegram в панели задач в среде рабочего стола на основе GTK3'
|
||||||
)
|
)
|
||||||
opt_deps_altlinux=(
|
opt_deps_altlinux=(
|
||||||
'libappindicator-gtk3: скрыть Telegram в панели задач в среде рабочего стола на основе GTK3'
|
'libappindicator-gtk3: скрыть Telegram в панели задач в среде рабочего стола на основе GTK3'
|
||||||
)
|
)
|
||||||
opt_deps_debian=(
|
opt_deps_debian=(
|
||||||
'lib64appindicator3-1: скрыть Telegram в панели задач в среде рабочего стола на основе GTK3'
|
'lib64appindicator3-1: скрыть Telegram в панели задач в среде рабочего стола на основе GTK3'
|
||||||
)
|
)
|
||||||
opt_deps_redos=(
|
opt_deps_redos=(
|
||||||
'libappindicator-gtk3: скрыть Telegram в панели задач в среде рабочего стола на основе GTK3'
|
'libappindicator-gtk3: скрыть Telegram в панели задач в среде рабочего стола на основе GTK3'
|
||||||
)
|
)
|
||||||
opt_deps_rosa=(
|
opt_deps_rosa=(
|
||||||
'lib64appindicator3_1: скрыть Telegram в панели задач в среде рабочего стола на основе GTK3'
|
'lib64appindicator3_1: скрыть Telegram в панели задач в среде рабочего стола на основе GTK3'
|
||||||
)
|
)
|
||||||
|
|
||||||
sources=(
|
sources=(
|
||||||
"${homepage}/raw/master/Telegram/Resources/art/icon16.png"
|
"${homepage}/raw/master/Telegram/Resources/art/icon16.png"
|
||||||
@ -43,7 +43,7 @@ sources=(
|
|||||||
"${homepage}/raw/master/Telegram/Resources/art/icon256.png"
|
"${homepage}/raw/master/Telegram/Resources/art/icon256.png"
|
||||||
"${homepage}/raw/master/Telegram/Resources/art/icon512.png"
|
"${homepage}/raw/master/Telegram/Resources/art/icon512.png"
|
||||||
"https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tsetup.${version}.tar.xz"
|
"https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tsetup.${version}.tar.xz"
|
||||||
)
|
)
|
||||||
|
|
||||||
checksums=(
|
checksums=(
|
||||||
'SKIP'
|
'SKIP'
|
||||||
@ -86,15 +86,15 @@ package() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Disable the official Telegram Desktop updater
|
# Disable the official Telegram Desktop updater
|
||||||
mkdir -p "$pkgdir/usr/share/TelegramDesktop/externalupdater.d"
|
mkdir -p "$pkgdir/usr/share/TelegramDesktop/externalupdater.d"
|
||||||
echo "/usr/bin/telegram-desktop" >"$pkgdir/usr/share/TelegramDesktop/externalupdater.d/telegram-desktop.conf"
|
echo "/usr/bin/telegram-desktop" >"$pkgdir/usr/share/TelegramDesktop/externalupdater.d/telegram-desktop.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
files() {
|
files() {
|
||||||
echo ./usr/bin/telegram-desktop
|
echo ./usr/bin/telegram-desktop
|
||||||
echo ./usr/share/TelegramDesktop/externalupdater.d/telegram-desktop.conf
|
echo ./usr/share/TelegramDesktop/externalupdater.d/telegram-desktop.conf
|
||||||
echo ./usr/share/pixmaps/telegram.png
|
echo ./usr/share/pixmaps/telegram.png
|
||||||
echo ./usr/share/kservices5/tg.protocol
|
echo ./usr/share/kservices5/tg.protocol
|
||||||
echo ./usr/share/applications/telegram-desktop-bin.desktop
|
echo ./usr/share/applications/telegram-desktop-bin.desktop
|
||||||
printf '"%s" ' ./usr/share/icons/hicolor/**/apps/
|
printf '"%s" ' ./usr/share/icons/hicolor/**/apps/
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user