void-packages/srcpkgs/quassel/template

66 lines
2 KiB
Bash

# Template file for 'quassel'
pkgname=quassel
version=0.14.0
revision=1
build_style=cmake
configure_args="-DWANT_QTCLIENT=ON -DWANT_MONO=ON -DWANT_CORE=ON -DUSE_QT5=ON
-DWITH_BUNDLED_ICONS=OFF -DENABLE_SHARED=OFF"
hostmakedepends="extra-cmake-modules pkg-config qt5-host-tools qt5-qmake"
makedepends="boost-devel libdbusmenu-qt5-devel phonon-qt5-devel qca-qt5-devel
qt5-multimedia-devel qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql
qt5-plugin-sqlite qt5-plugin-tds qt5-script-devel qt5-tools-devel
snorenotify-devel zlib-devel
$(vopt_if ldap libldap-devel)"
depends="qt5-plugin-sqlite quassel-client-shared>=${version}_${revision}"
_desc="Modern, cross-platform, distributed graphical IRC client"
short_desc="${_desc} - standalone client"
maintainer="Piraty <piraty1@inbox.ru>"
license="GPL-2.0-only, GPL-3.0-only"
homepage="https://www.quassel-irc.org"
changelog="https://github.com/quassel/quassel/blob/${version}/ChangeLog"
distfiles="https://quassel-irc.org/pub/quassel-${version}.tar.bz2"
checksum=bbd46ca429c1518480904c9e2b0ab3a0412fe197f3ce4879974e06ed3a0093a3
build_options="ldap"
post_install() {
vsv quasselcore
}
quassel-client-shared_package() {
replaces="quassel-shared>=0"
conflicts="quassel-shared>=0"
short_desc="${_desc} - common client files"
depends="desktop-file-utils"
pkg_install() {
vmove /usr/share/quassel
vmove /usr/share/icons
}
}
quassel-core_package() {
replaces="quasselcore>=0"
conflicts="quasselcore>=0"
depends="qt5-plugin-sqlite"
short_desc="${_desc} - server"
system_accounts="quassel"
quassel_homedir=/var/lib/quassel
make_dirs="
/var/lib/quassel 0750 quassel quassel
/var/log/quassel 0750 quassel quassel"
pkg_install() {
vmove /usr/bin/quasselcore
vmove /etc/sv
}
}
quassel-client_package() {
replaces="quasselclient>=0"
conflicts="quasselclient>=0"
depends="quassel-client-shared>=${version}_${revision}"
short_desc="${_desc} - distributed client"
pkg_install() {
vmove /usr/share/applications/quasselclient.desktop
vmove /usr/bin/quasselclient
}
}