summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Springer2018-12-20 17:45:38 +0100
committerStephan Springer2018-12-20 17:45:38 +0100
commit4a43e3f7b1da3a01d32cff907d133bdb82da06ee (patch)
treebf4611fa33435fd6c9f7ac9fe75a8e0641a1d6e3
downloadaur-4a43e3f7b1da3a01d32cff907d133bdb82da06ee.tar.gz
build version 0.13.0 using qt5-base-headless for minimal dependencies
-rw-r--r--.SRCINFO34
-rw-r--r--PKGBUILD70
-rw-r--r--quassel.conf2
-rw-r--r--quassel.service14
-rw-r--r--quassel.sysusers1
-rw-r--r--quassel.tmpfiles1
6 files changed, 122 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..052e91cf38b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+pkgbase = quassel-core-small
+ pkgdesc = Next-generation distributed IRC client - core only, minimal dependencies
+ pkgver = 0.13.0
+ pkgrel = 1
+ url = https://quassel-irc.org/
+ arch = x86_64
+ license = GPL
+ makedepends = qt5-base-headless
+ makedepends = qt5-tools
+ makedepends = qca
+ makedepends = qt5-script
+ makedepends = cmake
+ makedepends = extra-cmake-modules
+ makedepends = ninja
+ depends = qt5-base-headless
+ depends = qca
+ depends = qt5-script
+ optdepends = postgresql: PostgreSQL database support
+ provides = quassel-core
+ conflicts = quassel-core
+ backup = etc/conf.d/quassel
+ source = https://quassel-irc.org/pub/quassel-0.13.0.tar.bz2
+ source = quassel.service
+ source = quassel.sysusers
+ source = quassel.tmpfiles
+ source = quassel.conf
+ sha256sums = d9822002de5bb1fd1002cccd537e5a0bc8ec365d355fdff4fb7818daefade976
+ sha256sums = 5dbe20290f3361b9b7a74a52905137e76b656976febf2d31082a2276f9dcde7f
+ sha256sums = 3c72441a99e2668c6a8a751fa07beeb44f937576c8a1b5f615e4a55f841d93d9
+ sha256sums = 2afd4340c7713f6533e5d175a86b28fd118ecd907776c2b10925d1a4fb31cdca
+ sha256sums = f3031ea8217e01ba42cea14606169e3e27affa5918968ffd5a03c21ae92fe2b8
+
+pkgname = quassel-core-small
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..db71d231829
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,70 @@
+# Maintainer: Stephan Springer <buzo+arch@Lini.de>
+# Contributor: Oleg Shparber <trollixx+aur@gmail.com>
+# Contributor: Jaroslav Lichtblau <svetlemodry@archlinux.org>
+# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
+
+_pkgbase=quassel
+pkgname=('quassel-core-small')
+pkgver=0.13.0
+pkgrel=1
+pkgdesc="Next-generation distributed IRC client - core only, minimal dependencies"
+arch=('x86_64')
+url="https://quassel-irc.org/"
+license=('GPL')
+depends=('qt5-base-headless' 'qca' 'qt5-script')
+optdepends=('postgresql: PostgreSQL database support')
+makedepends=('qt5-base-headless' 'qt5-tools' 'qca' 'qt5-script'
+ 'cmake' 'extra-cmake-modules' 'ninja')
+provides=('quassel-core')
+conflicts=('quassel-core')
+backup=(etc/conf.d/quassel)
+source=("https://quassel-irc.org/pub/$_pkgbase-$pkgver.tar.bz2"
+ ${_pkgbase}.service
+ ${_pkgbase}.sysusers
+ ${_pkgbase}.tmpfiles
+ ${_pkgbase}.conf)
+sha256sums=('d9822002de5bb1fd1002cccd537e5a0bc8ec365d355fdff4fb7818daefade976'
+ '5dbe20290f3361b9b7a74a52905137e76b656976febf2d31082a2276f9dcde7f'
+ '3c72441a99e2668c6a8a751fa07beeb44f937576c8a1b5f615e4a55f841d93d9'
+ '2afd4340c7713f6533e5d175a86b28fd118ecd907776c2b10925d1a4fb31cdca'
+ 'f3031ea8217e01ba42cea14606169e3e27affa5918968ffd5a03c21ae92fe2b8')
+
+prepare() {
+ cd "$_pkgbase-$pkgver"
+}
+
+build() (
+ mkdir -p "build"
+ cd "build"
+ cmake -G Ninja ../"$_pkgbase-$pkgver" \
+ -DCMAKE_INSTALL_PREFIX=/usr/ \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DHAVE_SSL=ON \
+ -DWITH_KDE=OFF \
+ -DWITH_LDAP=OFF \
+ -DWITH_WEBENGINE=OFF \
+ -DWITH_WEBKIT=OFF \
+ -DUSE_QT5=ON \
+ -DWANT_CORE=ON \
+ -DWANT_QTCLIENT=OFF \
+ -DWANT_MONO=OFF \
+ -DWITH_BUNDLED_ICONS=OFF \
+ -Wno-dev
+ cmake --build .
+)
+
+package() {
+ DESTDIR="${pkgdir}" cmake --build "build" --target install
+
+ # Remove unneeded pixmap icons
+ rm -rfv "${pkgdir}"/usr/share
+
+ install -Dm644 $_pkgbase.sysusers \
+ "${pkgdir}"/usr/lib/sysusers.d/$_pkgbase.conf
+ install -Dm644 $_pkgbase.tmpfiles \
+ "${pkgdir}"/usr/lib/tmpfiles.d/$_pkgbase.conf
+ install -Dm644 $_pkgbase.service \
+ "${pkgdir}"/usr/lib/systemd/system/$_pkgbase.service
+ install -Dm644 $_pkgbase.conf \
+ "${pkgdir}"/etc/conf.d/$_pkgbase
+}
diff --git a/quassel.conf b/quassel.conf
new file mode 100644
index 00000000000..6b667d8d471
--- /dev/null
+++ b/quassel.conf
@@ -0,0 +1,2 @@
+QUASSEL_USER=quassel
+LISTEN=127.0.0.1
diff --git a/quassel.service b/quassel.service
new file mode 100644
index 00000000000..b23c61af2b9
--- /dev/null
+++ b/quassel.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Quassel Core
+After=network.target postgresql.service
+Wants=postgresql.service
+
+[Service]
+User=quassel
+Group=quassel
+PIDFile=/var/run/quassel.pid
+EnvironmentFile=/etc/conf.d/quassel
+ExecStart=/usr/bin/quasselcore --configdir=/var/lib/quassel
+
+[Install]
+WantedBy=multi-user.target
diff --git a/quassel.sysusers b/quassel.sysusers
new file mode 100644
index 00000000000..ea4fdf0f0a8
--- /dev/null
+++ b/quassel.sysusers
@@ -0,0 +1 @@
+u quassel - - /var/lib/quassel
diff --git a/quassel.tmpfiles b/quassel.tmpfiles
new file mode 100644
index 00000000000..b10c730d343
--- /dev/null
+++ b/quassel.tmpfiles
@@ -0,0 +1 @@
+d /var/lib/quassel - quassel quassel - -