Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.40 KB | None | 0 0
  1. # Maintainer: farseerfc <farseerfc@gmail.com>
  2. # Contributor: nylocx <just18@gmx.de>
  3. # Contributor: Llumex03 <l.lumex03@gmail.com>
  4. # Original uploader in CCR: FranzMari
  5. # Original uploader in AUR: Ḷḷumex03
  6. # Fixes in AUR by: ogarcia
  7.  
  8. pkgname=libqtelegram-ae-git
  9. reponame=libqtelegram-aseman-edition
  10. epoch=3
  11. pkgver=10.0.0.stable.r74.gb0054c5
  12. pkgrel=1
  13. pkgdesc="Telegram library written in Qt based on telegram-cli code"
  14. arch=('x86_64' 'i686')
  15. license=('GPL3')
  16. url="https://github.com/Aseman-Land/libqtelegram-aseman-edition"
  17. provides=("libqtelegram-ae=$epoch:$pkgver")
  18. conflicts=('libqtelegram-ae')
  19. depends=('qt5-base' 'qt5-multimedia')
  20. makedepends=('cmake' 'git')
  21. source=("git+https://github.com/Aseman-Land/libqtelegram-aseman-edition")
  22. md5sums=('SKIP')
  23.  
  24. pkgver() {
  25.   cd "$srcdir/$reponame"
  26.   ( set -o pipefail
  27.     git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
  28.     printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  29.   )
  30. }
  31.  
  32. prepare() {
  33.   cd $reponame
  34.   mkdir -p build
  35. }
  36.  
  37. build() {
  38.   cd $reponame
  39.   chmod +x ./init
  40.   ./init
  41.   git checkout tags/v10.0.0-stable
  42.   cd build
  43.   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 ..
  44.   make -j12
  45. }
  46.  
  47. package() {
  48.   cd $reponame/build
  49.   make INSTALL_ROOT="$pkgdir" install
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement