blob: ed749b38de174fa2b513614364fe268354bbb06b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# 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
epoch=3
pkgver=10.0.0.stable.r17.g10a4fd2
pkgrel=2
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=("$pkgname"::"git+https://github.com/Aseman-Land/libqtelegram-aseman-edition.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
( 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 $pkgname
mkdir -p build
}
build() {
cd $pkgname
## copied from ./init with modification
rm -rf libqtelegram-code-generator
git clone https://github.com/Aseman-Land/libqtelegram-code-generator
BUILD_DIR="build.init"
rm -rf "$BUILD_DIR"
mkdir "$BUILD_DIR"
cd "$BUILD_DIR"
qmake-qt5 -r ../libqtelegram-code-generator
make
./libqtelegram-generator 54 ../scheme/scheme-54.tl ..
cd ..
## end of ./init
cd build
qmake-qt5 -r QMAKE_CFLAGS_ISYSTEM= CONFIG+=typeobjects ..
make
}
package() {
cd $pkgname/build
make INSTALL_ROOT="$pkgdir" install
}
|