mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
40 lines
755 B
Bash
40 lines
755 B
Bash
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
||
|
|
||
|
_gitname=telegram-qt
|
||
|
pkgname=telegram-qt-git
|
||
|
pkgver=r477.3dd83d4
|
||
|
pkgrel=1
|
||
|
pkgdesc="Qt bindings for the Telegram protocol"
|
||
|
arch=(i686 x86_64)
|
||
|
url="https://projects.kde.org/telegram-qt/"
|
||
|
license=(GPL)
|
||
|
depends=(zlib qt5-base)
|
||
|
makedepends=(cmake git)
|
||
|
provides=$_gitname
|
||
|
conflicts=$_gitname
|
||
|
source=("git://anongit.kde.org/$_gitname.git")
|
||
|
md5sums=('SKIP')
|
||
|
|
||
|
pkgver() {
|
||
|
cd $_gitname
|
||
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||
|
}
|
||
|
|
||
|
prepare() {
|
||
|
mkdir -p build
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd build
|
||
|
cmake ../$_gitname \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||
|
-DCMAKE_BUILD_TYPE=Release
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd build
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
}
|