Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: farseerfc <farseerfc@gmail.com>
- # Contributor: nylocx <just18@gmx.de>
- # Contributor: Llumex03 <l.lumex03@gmail.com>
- # Original uploader in CCR: FranzMari
- # Original uploader in AUR: Ḷḷumex03
- # Fixes in AUR by: ogarcia
- pkgname=libqtelegram-ae-git
- reponame=libqtelegram-aseman-edition
- epoch=3
- pkgver=10.0.0.stable.r74.gb0054c5
- pkgrel=1
- pkgdesc="Telegram library written in Qt based on telegram-cli code"
- arch=('x86_64' 'i686')
- license=('GPL3')
- url="https://github.com/Aseman-Land/libqtelegram-aseman-edition"
- provides=("libqtelegram-ae=$epoch:$pkgver")
- conflicts=('libqtelegram-ae')
- depends=('qt5-base' 'qt5-multimedia')
- makedepends=('cmake' 'git')
- source=("git+https://github.com/Aseman-Land/libqtelegram-aseman-edition")
- md5sums=('SKIP')
- pkgver() {
- cd "$srcdir/$reponame"
- ( set -o pipefail
- git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
- )
- }
- prepare() {
- cd $reponame
- mkdir -p build
- }
- build() {
- cd $reponame
- chmod +x ./init
- ./init
- git checkout tags/v10.0.0-stable
- cd build
- qmake-qt5 -r OPENSSL_LIB_DIR=/usr/lib/openssl-0.9.8 OPENSSL_INCLUDE_PATH=/usr/include/openssl-0.9.8 QMAKE_CFLAGS_ISYSTEM= CONFIG+=typeobjects ..
- make -j12
- }
- package() {
- cd $reponame/build
- make INSTALL_ROOT="$pkgdir" install
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement