blob: 149e3aaccc9058950b0644edbd7f6b036fddf895 (
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
|
# Maintainer: Viachaslau Khalikin <khalikin'at'yandex>
_check_arch () {
case $CARCH in
i386) LINUX_ARCH=32
;;
x86_64) LINUX_ARCH=64
;;
*) LINUX_ARCH=Unknown
;;
esac
}
_check_arch
unset _check_arch
_git_reponame='im-desktop'
pkgname='icqdesktop-git'
pkgver=r18.271e42d
pkgrel=3
arch=('i686' 'x86_64')
depends=('fontconfig' 'libxdamage' 'libxcomposite' 'freetype2' 'libxext')
makedepends=('cmake' 'glfw-x11' 'python')
#optdepends=('')
pkgdesc='Official ICQ desktop client for Linux'
url='https://icq.com/'
license=('Apache')
source=("${pkgname}::git+https://github.com/mail-ru-im/${_git_reponame}.git"
'icq.desktop')
md5sums=('SKIP'
'c057fc7de909f05e66abe0d21354d135')
conflicts=('icqdesktop' 'icqdesktop-bin')
provides=('icqdesktop-git')
pkgver() {
cd ${pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
printf "WARNING! Compiling require not less 6Gb available memory\n"
}
build() {
cmake ${pkgname} \
-G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DLINUX_ARCH=$LINUX_ARCH
# -DICQ_QT_DYNAMIC=YES
make
}
package() {
install -Dm755 "${pkgname}/bin/Release${LINUX_ARCH}/icq" "${pkgdir}/usr/bin/icq"
install -Dm644 "${pkgname}/products/icq/app/resources/main_window/logo.svg" "${pkgdir}/usr/share/pixmaps/icq.svg"
install -Dm644 icq.desktop "${pkgdir}/usr/share/applications/icq.desktop"
}
# vim:set ft=sh ts=2 sw=2 et:
|