summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e102079ccb5650142e8f9e38115d79b3c182126c (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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Maintainer: Daniel Albers <daniel@lbe.rs>
# Source: <https://github.com/AlD/archlinux/tree/master/pkgbuilds/quassel>

pkgbase='quassel'
pkgname=("${pkgbase}-git"
         "${pkgbase}-light-git"
         "${pkgbase}-client-git"
         "${pkgbase}-client-light-git"
         "${pkgbase}-core-git"
        )

pkgver=0.14.pre.111.g00e1d524
pkgrel=1
url='http://quassel-irc.org'
license=('GPL')
arch=('i686' 'x86_64' 'arm' 'aarch64')
makedepends=('git' 'cmake' 'extra-cmake-modules' 'hicolor-icon-theme'
             'knotifyconfig' 'python' 'qca' 'qt5-base' 'qt5-script'
             'qt5-tools' 'qt5-webkit' 'boost')
source=(
  'git+https://github.com/quassel/quassel.git'
)
md5sums=('SKIP')

_srcdir="${startdir}/src/${pkgbase}"

_builddir="${startdir}/build"
_cmakecache="CMakeCache.txt"

pkgver() {
  pushd "${srcdir}/${pkgbase}" > /dev/null
  #git describe --always | sed 's/-beta/.0.beta/; s/-/./g;'
  git describe --always | sed 's/-/./g;'
  popd > /dev/null
}

_prepare_build() {
  msg 'Preparing build directory...'
  mkdir -p "$_builddir"
  pushd "$_builddir" > /dev/null
  rm -f "$_cmakecache"
  popd > /dev/null
}

_build() {
  pushd "$_builddir" > /dev/null

  msg 'Compiling...'
  make

  make DESTDIR="$pkgdir" install
}

package_quassel-client-git() {
  depends=('hicolor-icon-theme' 'knotifyconfig' 'qt5-base' 'qt5-webkit')
  pkgdesc='KDE-based distributed IRC client (client only)'
  provides=('quassel-client')
  conflicts=('quassel-client')

  _prepare_build

  pushd "$_builddir" >/dev/null

  msg 'Configuring build options...'
  cmake -DWANT_MONO=OFF             \
        -DWANT_CORE=OFF             \
        -DWANT_QTCLIENT=ON          \
        -DHAVE_SSL=ON               \
        -DWITH_KDE=ON               \
        -DWITH_WEBKIT=ON            \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib  \
        "$_srcdir"

  popd >/dev/null
  _build
}

package_quassel-client-light-git() {
  pkgdesc='Qt-based distributed IRC client (client only)'
  depends=('hicolor-icon-theme' 'qt5-base')
  provides=('quassel-client')
  conflicts=('quassel-client')

  _prepare_build

  pushd "$_builddir" >/dev/null

  msg 'Configuring build options...'
  cmake -DWANT_MONO=OFF             \
        -DWANT_CORE=OFF             \
        -DWANT_QTCLIENT=ON          \
        -DHAVE_SSL=ON               \
        -DWITH_KDE=OFF              \
        -DWITH_WEBKIT=OFF           \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib  \
        "$_srcdir"

  popd >/dev/null
  _build
}

package_quassel-core-git() {
  pkgdesc='KDE/Qt-based distributed IRC client (core only)'
  depends=('icu' 'qca' 'qt5-script')
  provides=('quassel-core')
  conflicts=('quassel-core')

  _prepare_build

  pushd "$_builddir" >/dev/null

  msg 'Configuring build options...'
  cmake -DWANT_MONO=OFF             \
        -DWANT_CORE=ON              \
        -DWANT_QTCLIENT=OFF         \
        -DHAVE_SSL=ON               \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib  \
        "$_srcdir"

  popd >/dev/null
  _build
}

package_quassel-git() {
  pkgdesc='KDE-based IRC client (monolithic version)'
  depends=('hicolor-icon-theme' 'knotifyconfig' 'qca' 'qt5-base'
           'qt5-script' 'qt5-webkit')

  _prepare_build

  pushd "$_builddir" >/dev/null

  msg 'Configuring build options...'
  cmake -DWANT_MONO=ON              \
        -DWANT_CORE=OFF             \
        -DWANT_QTCLIENT=OFF         \
        -DHAVE_SSL=ON               \
        -DWITH_KDE=ON               \
        -DWITH_WEBKIT=ON            \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib  \
        "$_srcdir"

  popd >/dev/null
  _build
}

package_quassel-light-git() {
  pkgdesc='Qt-based IRC client (monolithic version)'
  depends=('hicolor-icon-theme' 'qt5-base')
  _prepare_build

  pushd "$_builddir" >/dev/null

  msg 'Configuring build options...'
  cmake -DWANT_MONO=ON              \
        -DWANT_CORE=OFF             \
        -DWANT_QTCLIENT=OFF         \
        -DHAVE_SSL=ON               \
        -DWITH_KDE=OFF              \
        -DWITH_WEBKIT=OFF           \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib  \
        "$_srcdir"

  popd >/dev/null
  _build
}