blob: ee87a7c3dffbc2ab378292931c36819445ea836c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Omansh Krishn <omansh@duck.com>
# Previous Maintainer: westpain <homicide@disroot.org>
pkgname=materialgram-bin
pkgver=5.8.1.1
pkgrel=1
pkgdesc="Telegram Desktop based messenger with Material Design and additional features - Binary Version"
arch=(x86_64)
url="https://github.com/kukuruzka165/materialgram"
license=(GPL3)
depends=('hunspell' 'ffmpeg' 'hicolor-icon-theme' 'lz4' 'minizip' 'openal'
'qt6-imageformats' 'qt6-svg' 'qt6-wayland' 'xxhash' 'ada'
'rnnoise' 'pipewire' 'libxtst' 'libxrandr' 'libxcomposite' 'libxdamage' 'abseil-cpp' 'libdispatch'
'openssl' 'protobuf' 'glib2' 'libsigc++-3.0' 'kcoreaddons' 'jemalloc' 'openh264')
makedepends=('chrpath')
optdepends=('webkit2gtk: embedded browser features'
'xdg-desktop-portal: desktop integration')
provides=('materialgram')
conflicts=('materialgram-git')
options=(!debug)
source=( https://github.com/kukuruzka165/materialgram/releases/download/v${pkgver}/materialgram-v${pkgver}.tar.gz )
sha256sums=('539ce5323ee0df9dbae19f6fbf3db976caf6d4058b303e7504a0b1419c126f3f')
package() {
cd "${srcdir}/"
# Creating needed directories
install -dm755 "${pkgdir}/usr/bin"
install -dm755 "${pkgdir}/usr/share"
install -dm755 "${pkgdir}/usr/share/applications"
install -dm755 "${pkgdir}/usr/share/dbus-1"
install -dm755 "${pkgdir}/usr/share/icons"
install -dm755 "${pkgdir}/usr/share/pixmaps"
install -dm755 "${pkgdir}/usr/share/metainfo"
# Application executable
install -Dm755 "${srcdir}/usr/bin/materialgram" "${pkgdir}/usr/bin/materialgram"
# Remove RPATH informations
chrpath --delete "${pkgdir}/usr/bin/materialgram"
# Desktop launcher
install -Dm644 "${srcdir}/usr/share/icons/hicolor/256x256/apps/materialgram.png" "${pkgdir}/usr/share/pixmaps/materialgram.png"
install -Dm644 "${srcdir}/usr/share/applications/io.github.kukuruzka165.materialgram.desktop" "${pkgdir}/usr/share/applications/io.github.kukuruzka165.materialgram.desktop"
# DBus service
install -Dm644 "${srcdir}/usr/share/dbus-1/services/io.github.kukuruzka165.materialgram.service" "${pkgdir}/usr/share/dbus-1/services/io.github.kukuruzka165.materialgram.service"
# Metainfo
install -Dm644 "${srcdir}/usr/share/metainfo/io.github.kukuruzka165.materialgram.metainfo.xml" "${pkgdir}/usr/share/metainfo/io.github.kukuruzka165.materialgram.metainfo.xml"
# Icons
local icon_size icon_dir
for icon_size in 16 32 48 64 128 256 512; do
icon_dir="${pkgdir}/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps"
install -d "${icon_dir}"
install -m644 "${srcdir}/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps/materialgram.png" "${icon_dir}/materialgram.png"
done
}
|