blob: 22645f7193e6aa06fcd6ef8bb2fa4f0f9a526e0e (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# Maintainer: Oleg Shparber <trollixx+aur@gmail.com>
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# URL: https://github.com/trollixx/aur-packages
_pkgbase=quassel
pkgbase=${_pkgbase}-light
pkgname=('quassel-client-light' 'quassel-core-light' 'quassel-monolithic-light')
pkgver=0.12.2
pkgrel=3
pkgdesc="Next-generation distributed IRC client (minimal dependencies)"
arch=('i686' 'x86_64')
url="http://quassel-irc.org/"
license=('GPL')
makedepends=('cmake')
source=(http://quassel-irc.org/pub/${_pkgbase}-$pkgver.tar.bz2
${_pkgbase}.service
${_pkgbase}.conf
fix_ssl_check.patch
fix_qt5.5_build.patch)
sha256sums=('6bd6f79ecb88fb857bea7e89c767a3bd0f413ff01bae9298dd2e563478947897'
'828aaf27696ffe2aa4b80755a09bdf264f644d9539366981697a73bb23340d7b'
'f3031ea8217e01ba42cea14606169e3e27affa5918968ffd5a03c21ae92fe2b8'
'c62f50511322c6cd27b10b4c3d92d0c04262454467b95f1a84064f784c47ba7b'
'a92914a26fe3f6601da7cfd26fb6a6fe6a0ba6c0bd91ac9416765974127365f6')
prepare() {
cd ${_pkgbase}-$pkgver
patch -p1 -i ../../fix_ssl_check.patch
patch -p1 -i ../../fix_qt5.5_build.patch
}
build() {
cd "${srcdir}"
[[ ! -d build ]] && mkdir build
[[ ! -d build-client ]] && mkdir build-client
[[ ! -d build-mono ]] && mkdir build-mono
# Core
cd "${srcdir}"/build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr/ \
-DUSE_QT5=ON \
-DWITH_KDE=OFF \
-DCMAKE_BUILD_TYPE="Release" \
-DHAVE_SSL=TRUE \
-DWANT_CORE=ON \
-DWANT_MONO=OFF \
-DWANT_QTCLIENT=OFF \
-DWITH_OXYGEN=OFF \
-DWITH_WEBKIT=OFF \
-DCMAKE_BUILD_TYPE="Release" \
../quassel-${pkgver}/ \
-Wno-dev
make
# Client
cd "${srcdir}"/build-client
cmake \
-DCMAKE_INSTALL_PREFIX=/usr/ \
-DUSE_QT5=ON \
-DWITH_KDE=OFF \
-DHAVE_SSL=TRUE \
-DCMAKE_BUILD_TYPE="Release" \
-DWANT_CORE=OFF \
-DWANT_QTCLIENT=ON \
-DWANT_MONO=OFF \
-DWITH_WEBKIT=OFF \
../quassel-${pkgver}/ \
-Wno-dev
make
# Monolithic
cd "${srcdir}"/build-mono
cmake \
-DCMAKE_INSTALL_PREFIX=/usr/ \
-DUSE_QT5=ON \
-DWITH_KDE=OFF \
-DHAVE_SSL=TRUE \
-DCMAKE_BUILD_TYPE="Release" \
-DWANT_CORE=OFF \
-DWANT_QTCLIENT=OFF \
-DWANT_MONO=ON \
-DWITH_WEBKIT=OFF \
../quassel-${pkgver}/ \
-Wno-dev
make
}
package_quassel-core-light() {
pkgdesc="Next-generation distributed IRC client - core only (minimal dependencies)"
depends=('qt5-base' 'qt5-script')
backup=(etc/conf.d/quassel)
provides=('quassel-core')
install=quassel.install
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
# Remove unneeded pixmap icons
rm -r "${pkgdir}"/usr/share
install -Dm644 "${srcdir}"/${_pkgbase}.service \
"${pkgdir}"/usr/lib/systemd/system/${_pkgbase}.service
install -Dm644 "${srcdir}"/${_pkgbase}.conf \
"${pkgdir}"/etc/conf.d/${_pkgbase}
}
package_quassel-client-light() {
pkgdesc="Next-generation distributed IRC client - client only (minimal dependencies)"
depends=('qt5-base')
provides=('quassel-client')
conflicts=('quassel-monolithic')
install=quassel-client.install
cd "${srcdir}"/build-client
make DESTDIR="${pkgdir}" install
}
package_quassel-monolithic-light() {
pkgdesc="Next-generation distributed IRC client - monolithic (minimal dependencies)"
depends=('qt5-base' 'qt5-script')
provides=('quassel-monolithic')
conflicts=('quassel-client')
install=quassel-monolithic.install
cd "${srcdir}"/build-mono
make DESTDIR="${pkgdir}" install
}
|