mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 13:57:19 +08:00
da42687561
- libqtelegram-ae: switch to git build - aseman-qt-tools: switch to git build - telegramqml: switch to git build - cutegram: switch to git build, use binary mode, mute error code - Known Bug: 1. 2FA not working 2. Fonts are fixed and in tiny size, no UI for configuration
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
pkgname=cutegram
|
|
_pkgname=Cutegram
|
|
pkgver=2.9.5.de.37.g8439c2e
|
|
pkgrel=5
|
|
pkgdesc="A different telegram client from Aseman team"
|
|
arch=('x86_64')
|
|
url="http://aseman.co/en/products/cutegram/"
|
|
license=('GPL')
|
|
depends=('libqtelegram-ae' 'telegramqml' 'aseman-qt-tools' 'qt5-declarative')
|
|
optdepends=('gst-plugins-good: for audio and notification support'
|
|
'gst-plugins-bad: for audio support')
|
|
source=("${pkgname}::git+https://github.com/Aseman-Land/Cutegram.git#commit=8439c2e7c9f43c76f35dbb7a23e1ebc4ed596a6f"
|
|
'0001-remove-error-dialog.patch')
|
|
sha1sums=('SKIP'
|
|
'3dc80cb6e95ba413871fa53b1240fc900d2b0b32')
|
|
|
|
pkgver() {
|
|
cd ${srcdir}/${pkgname}
|
|
git describe --long | sed 's/\([^-]*-g\)/\1/;s/-/./g' | sed 's/.stable//g' | sed 's/v//g'
|
|
}
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
patch -Np1 -i $srcdir/0001-remove-error-dialog.patch
|
|
# change the heading application
|
|
sed 's,qmlscene,qmlscene-qt5,g' -i cutegram.pro
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}/build"
|
|
qmake-qt5 QMAKE_CFLAGS_ISYSTEM= PREFIX=/usr DEFINES+=WEBENGINE_ASEMAN_WEBGRABBER CONFIG+=binaryMode ..
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}/build"
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
}
|