2015-07-04 04:59:15 +08:00
|
|
|
pkgname=cutegram
|
|
|
|
_pkgname=Cutegram
|
2016-08-17 14:53:33 +08:00
|
|
|
pkgver=2.9.5
|
2016-08-19 16:31:05 +08:00
|
|
|
pkgrel=3
|
2015-07-04 04:59:15 +08:00
|
|
|
pkgdesc="A different telegram client from Aseman team"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://aseman.co/en/products/cutegram/"
|
|
|
|
license=('GPL')
|
2016-08-17 14:53:33 +08:00
|
|
|
depends=('libqtelegram-ae' 'telegramqml' 'aseman-qt-tools')
|
|
|
|
optdepends=('gst-plugins-good: for audio and notification support'
|
|
|
|
'gst-plugins-bad: for audio support')
|
2016-08-19 16:31:05 +08:00
|
|
|
source=("${pkgname}"::"git+https://github.com/Aseman-Land/Cutegram.git#commit=20690bd6b47e0cb56787e9f0e60c7c99de492c91")
|
|
|
|
sha1sums=('SKIP')
|
2015-07-04 04:59:15 +08:00
|
|
|
|
|
|
|
prepare() {
|
2016-08-19 16:31:05 +08:00
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
|
|
|
|
# modify desktop file for binaryMode
|
|
|
|
sed -i "s|qmlscene /usr/share/cutegram/3.0/main.qml|/usr/bin/cutegram|" share/Cutegram.desktop
|
2015-10-09 21:41:46 +08:00
|
|
|
mkdir -p build
|
2015-07-04 04:59:15 +08:00
|
|
|
}
|
|
|
|
|
2015-08-19 09:38:12 +08:00
|
|
|
build() {
|
2016-08-19 16:31:05 +08:00
|
|
|
cd "${srcdir}/${pkgname}/build"
|
|
|
|
qmake-qt5 QMAKE_CFLAGS_ISYSTEM= PREFIX=/usr DEFINES+=WEBENGINE_ASEMAN_WEBGRABBER CONFIG+=binaryMode ..
|
2015-08-19 09:38:12 +08:00
|
|
|
make
|
|
|
|
}
|
2015-07-04 04:59:15 +08:00
|
|
|
|
|
|
|
package() {
|
2016-08-19 16:31:05 +08:00
|
|
|
cd "${srcdir}/${pkgname}/build"
|
2015-10-09 21:41:46 +08:00
|
|
|
|
2016-08-19 16:31:05 +08:00
|
|
|
install -Dm755 cutegram "${pkgdir}/usr/bin/cutegram"
|
|
|
|
install -Dm644 ../share/Cutegram.desktop "${pkgdir}/usr/share/applications/Cutegram.desktop"
|
2015-08-19 09:38:12 +08:00
|
|
|
}
|