summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9bc5b200d4205165f6f29d0280601f4291676f72 (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
# Maintainer: Chris Lane <aur at chrislane dot com>
pkgname=quassel-core-lighter-git
pkgver=0.14.pre.r255.gb0035602
pkgrel=1
pkgdesc="Qt-based distributed IRC client (core only) - minimal dependencies"
url='https://quassel-irc.org'
license=('GPL')
arch=('i686' 'x86_64' 'arm' 'aarch64')
depends=('qt5-base')
makedepends=('git' 'extra-cmake-modules' 'ninja' 'boost')
optdepends=('qca: encryption support'
            'libldap: LDAP support')
provides=('quassel-core')
conflicts=('quassel-core')
source=("git+https://github.com/quassel/quassel")
md5sums=('SKIP')

pkgver() {
  cd quassel
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake -G Ninja                \
    -B build                    \
    -S quassel                  \
    -DCMAKE_BUILD_TYPE=None     \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib  \
    -DWANT_CORE=ON              \
    -DHAVE_SSL=ON               \
    -DWANT_MONO=OFF             \
    -DWANT_QTCLIENT=OFF         \
    -DWITH_KDE=OFF              \
    -DWITH_BUNDLED_ICONS=OFF    \
    -DWITH_WEBENGINE=OFF        \
    -Wno-dev                    \

  ninja -C build
}

package() {
  DESTDIR="$pkgdir" ninja install -C build
}

# vim:set ts=2 sw=2 et: