diff options
Diffstat (limited to 'community/quassel')
-rw-r--r-- | community/quassel/PKGBUILD | 90 | ||||
-rw-r--r-- | community/quassel/quassel-client.install | 9 | ||||
-rw-r--r-- | community/quassel/quassel.conf | 2 | ||||
-rw-r--r-- | community/quassel/quassel.install | 21 | ||||
-rw-r--r-- | community/quassel/quassel.service | 12 |
5 files changed, 134 insertions, 0 deletions
diff --git a/community/quassel/PKGBUILD b/community/quassel/PKGBUILD new file mode 100644 index 000000000..04c8c6994 --- /dev/null +++ b/community/quassel/PKGBUILD @@ -0,0 +1,90 @@ +# $Id: PKGBUILD 91733 2013-05-26 19:25:26Z jelle $ +# Maintainer: Vesa Kaihlavirta <vegai@iki.fi> +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + +pkgbase=quassel +pkgname=('quassel-client' 'quassel-core') +pkgver=0.9.0 +pkgrel=1 +pkgdesc="QT4 irc client with a separated core" +arch=('i686' 'x86_64') +url="http://quassel-irc.org/" +license=('GPL') +makedepends=('cmake' 'automoc4' 'qt4' 'icu') +source=("http://quassel-irc.org/pub/quassel-$pkgver.tar.bz2" + 'quassel.service' + 'quassel.conf') + +sha256sums=('2e3fe06ae3731c829aa3c2f6bb5320619bad264c831f322985c3aa3fe58b6027' + '91a1aaae47d41c11aa418dd560039ddbbfb659e02b86379d8c4789c5ada362d3' + 'f3031ea8217e01ba42cea14606169e3e27affa5918968ffd5a03c21ae92fe2b8') +build() { + cd $srcdir + [[ ! -d build ]] && mkdir build + mkdir build-client + + # Core + cd build + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr/ \ + -DWITH_KDE=0 \ + -DCMAKE_BUILD_TYPE="Release" \ + -DWITH_OPENSSL=ON \ + -DWANT_CORE=ON \ + -DWANT_MONO=OFF \ + -DWANT_QTCLIENT=OFF \ + -DWITH_DBUS=OFF \ + -DWITH_OXYGEN=OFF \ + -DWITH_PHONON=OFF \ + -DWITH_WEBKIT=OFF \ + -DCMAKE_BUILD_TYPE="Release" \ + ../quassel-${pkgver}/ \ + -Wno-dev + + make + + # Client + cd $srcdir/build-client + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr/ \ + -DWITH_KDE=0 \ + -DWITH_OPENSSL=ON \ + -DCMAKE_BUILD_TYPE="Release" \ + -DWANT_CORE=OFF \ + -DWANT_QTCLIENT=ON \ + -DWANT_MONO=ON \ + ../quassel-${pkgver}/ \ + -Wno-dev + + make + +} + +package_quassel-core() { +pkgdesc="Qt4 IRC client with a separated core - core only" +depends=('qt4' 'icu') +backup=(etc/conf.d/quassel) +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() { +pkgdesc="Qt4 IRC client with a separated core - client only" +depends=('qt4') +install=quassel-client.install + cd $srcdir/build-client + + make DESTDIR=${pkgdir} install +} diff --git a/community/quassel/quassel-client.install b/community/quassel/quassel-client.install new file mode 100644 index 000000000..1c93ee3f9 --- /dev/null +++ b/community/quassel/quassel-client.install @@ -0,0 +1,9 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} +post_upgrade() { + post_install +} +post_remove() { + post_install +} diff --git a/community/quassel/quassel.conf b/community/quassel/quassel.conf new file mode 100644 index 000000000..6b667d8d4 --- /dev/null +++ b/community/quassel/quassel.conf @@ -0,0 +1,2 @@ +QUASSEL_USER=quassel +LISTEN=127.0.0.1 diff --git a/community/quassel/quassel.install b/community/quassel/quassel.install new file mode 100644 index 000000000..5cd29276b --- /dev/null +++ b/community/quassel/quassel.install @@ -0,0 +1,21 @@ +post_install() { + useradd -r -s /bin/sh -d /var/lib/quassel quassel + mkdir -p /var/lib/quassel && chown -R quassel:quassel /var/lib/quassel +# xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + [ `vercmp $2 0.5.2-1` -le 0 ] && ( + cat <<EOF + +==> - quasselcore now runs as the quassel user +==> - quasselcore now listens to port 127.0.0.1 by default +==> - both of above are configurable: /etc/conf.d/quassel +EOF + post_install + ) || true +} + +post_remove() { + userdel quassel +} diff --git a/community/quassel/quassel.service b/community/quassel/quassel.service new file mode 100644 index 000000000..eff018899 --- /dev/null +++ b/community/quassel/quassel.service @@ -0,0 +1,12 @@ +[Unit] +Description=Quassel core service +After=network.target + +[Service] +Type=simple +User=quassel +Group=quassel +ExecStart=/usr/bin/quasselcore --configdir=/var/lib/quassel --listen=0.0.0.0 + +[Install] +WantedBy=multi-user.target |