Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alesar1
64gram
PKGBUILD
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PKGBUILD of Package 64gram
# Maintainer: Alesar1 # Contributor: solopasha <daron439 at gmail dot com> # Contributor: KspLite <ksplite@outlook.com> # Contributor: Daniil Kovalev <daniil@kovalev.website> pkgname=64gram-desktop _pkgname=64Gram pkgver=1.1.46 pkgrel=2 epoch=1 pkgdesc='Unofficial desktop version of Telegram messaging app' arch=('x86_64') url="https://github.com/TDesktop-x64/tdesktop" license=('GPL3') depends=('hunspell' 'ffmpeg' 'hicolor-icon-theme' 'lz4' 'minizip' 'openal' 'qt6-imageformats' 'qt6-svg' 'qt6-wayland' 'xxhash' 'ada' 'rnnoise' 'pipewire' 'libxtst' 'libxrandr' 'abseil-cpp' 'libdispatch' 'openssl' 'protobuf' 'glib2' 'libsigc++-3.0' 'libxcomposite' 'libvpx' 'libxdamage' 'kcoreaddons' 'jemalloc' 'openh264') makedepends=('cmake' 'git' 'ninja' 'python' 'range-v3' 'tl-expected' 'microsoft-gsl' 'meson' 'extra-cmake-modules' 'wayland-protocols' 'plasma-wayland-protocols' 'libtg_owt' 'gobject-introspection' 'boost' 'fmt' 'mm-common' 'perl-xml-parser' 'python-packaging' 'dos2unix' 'glib2-devel') optdepends=('webkit2gtk: embedded browser features' 'xdg-desktop-portal: desktop integration') source=("https://github.com/TDesktop-x64/tdesktop/releases/download/v${pkgver}/${_pkgname}-${pkgver}-full.tar.gz" "fix-lzma-link.patch" "io.github.tdesktop_x64.TDesktop.desktop" "$pkgname-28611.patch::https://patch-diff.githubusercontent.com/raw/telegramdesktop/tdesktop/pull/28611.patch") noextract=("${_pkgname}-${pkgver}-full.tar.gz") sha512sums=('274b4de242da4ef812c32fc74fc0ee612f994ff90ae5c45d87245ddb785453be51d8ccd51c5f53f87c746fa5e9d0bcb78750e862d75a16a21dd8bc76c849cff4' 'd813a5ac6ff2208b693ecf494d7bf036087e223662f9f34aaaeafea0afe0fe798e867b9610f7221ea80319865502c20b61310d5a31634b888793873d63322463' 'ea027bc2d40c74507adf32380444207210a8c31cdba57f3f468d23d8e9c7376647cc8c713f188660f9b1dacd9041227aafd5a27c7889f47ea3985712b6b74b8b' 'b959fd3d26734e4361f8f567eacc874cd753b347b55fa0fc2640d10b65f1a6788b677967c601b1f92f636831c8aafe7681145ab35c69c983960ec3b78707f321') prepare() { LANG=C.UTF-8 bsdtar -xf ${_pkgname}-${pkgver}-full.tar.gz cd $_pkgname-$pkgver-full patch -p1 --binary < ../fix-lzma-link.patch find "${srcdir}"/ -type f -exec dos2unix {} \; patch -Np1 -d . -i "$srcdir"/$pkgname-28611.patch } build() { CXXFLAGS+=' -ffat-lto-objects' cmake \ -B build \ -S $_pkgname-$pkgver-full \ -G Ninja \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_BUILD_TYPE=Release \ -DDESKTOP_APP_DISABLE_AUTOUPDATE=ON \ -DTDESKTOP_API_TEST=ON cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build mv "$pkgdir/usr/bin/telegram-desktop" "$pkgdir/usr/bin/64gram-desktop" install -Dm644 "$srcdir/io.github.tdesktop_x64.TDesktop.desktop" -t "$pkgdir/usr/share/applications" find "$pkgdir" -type f -name "telegram.png" -exec rename telegram.png 64gram.png {} \; mv "$pkgdir/usr/share/icons/hicolor/symbolic/apps/telegram-symbolic.svg" "$pkgdir/usr/share/icons/hicolor/symbolic/apps/64gram-symbolic.svg" mkdir -p "$pkgdir/usr/share/64Gram/externalupdater.d" echo "/usr/bin/64gram-desktop" >"$pkgdir/usr/share/64Gram/externalupdater.d/telegram-desktop.conf" }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor