summaryrefslogtreecommitdiff
path: root/user/quassel
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-24 01:57:23 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-24 01:57:23 -0500
commit6f7e00e148e15d010897c60654bb010da5ec8748 (patch)
tree86abea56e9f39a70481824fc923c58eeeb92316c /user/quassel
parent9b374eb420a646c26070549c7b70c43be21acf43 (diff)
downloadpackages-6f7e00e148e15d010897c60654bb010da5ec8748.tar.gz
packages-6f7e00e148e15d010897c60654bb010da5ec8748.tar.bz2
packages-6f7e00e148e15d010897c60654bb010da5ec8748.tar.xz
packages-6f7e00e148e15d010897c60654bb010da5ec8748.zip
user/quassel: new package
Diffstat (limited to 'user/quassel')
-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"