summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/quassel/APKBUILD74
1 files changed, 74 insertions, 0 deletions
diff --git a/user/quassel/APKBUILD b/user/quassel/APKBUILD
new file mode 100644
index 000000000..7c9e999a9
--- /dev/null
+++ b/user/quassel/APKBUILD
@@ -0,0 +1,74 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=quassel
+pkgver=0.12.4
+pkgrel=0
+pkgdesc="Modern, cross-platform IRC client"
+url="https://quassel-irc.org/"
+arch="all"
+license="GPL-3.0+"
+depends="$pkgname-client $pkgname-core"
+makedepends="qt5-qtbase-dev qt5-qtmultimedia-dev libdbusmenu-qt-dev sonnet-dev
+ extra-cmake-modules kconfigwidgets-dev kcoreaddons-dev kxmlgui-dev
+ knotifications-dev knotifyconfig-dev ktextwidgets-dev qt5-qtscript-dev
+ kwidgetsaddons-dev qca-dev qt5-qttools-dev zlib-dev libexecinfo-dev"
+install=""
+langdir="/usr/share/quassel/translations"
+subpackages="$pkgname-core $pkgname-client $pkgname-lang"
+source="https://quassel-irc.org/pub/quassel-$pkgver.tar.bz2"
+builddir="$srcdir/quassel-$pkgver"
+
+build() {
+ cd "$builddir"
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DUSE_QT5=ON \
+ -DWITH_KDE=ON \
+ -DWITH_WEBENGINE=OFF \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+client() {
+ pkgdesc="Modern, cross-platform IRC client (Thin client only)"
+ depends=""
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/quasselclient "$subpkgdir"/usr/bin/
+
+ local dir
+ for dir in {applications,icons,pixmaps,knotifications5}; do
+ mkdir -p "$subpkgdir"/usr/share/$dir
+ mv "$pkgdir"/usr/share/$dir "$subpkgdir"/usr/share/
+ done
+
+ mkdir -p "$subpkgdir"/usr/share/quassel
+ mv "$pkgdir"/usr/share/quassel/stylesheets \
+ "$subpkgdir"/usr/share/quassel/
+}
+
+core() {
+ pkgdesc="Modern, cross-platform IRC daemon (core only)"
+ depends=""
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/quasselcore "$subpkgdir"/usr/bin/
+}
+
+sha512sums="66bc12a9634534e6492787172a199c774ef1642d1ddb268c24ed96608698628bca7b278021a006a4db76783b19b1e1dead9d019bb8a6cbe1e12b8857792e7b92 quassel-0.12.4.tar.bz2"