summaryrefslogblamecommitdiff
path: root/user/quassel/APKBUILD
blob: 3e5f77ceef14a5076ac3f1e3d4c670ee2c072f68 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                  
             


                                           
                                                                   



                                                                              

                                                            



                        




















































                                                                                          
                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=quassel
pkgver=0.12.5
pkgrel=0
pkgdesc="Modern, cross-platform IRC client"
url="https://quassel-irc.org/"
arch="all"
license="(GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0+ AND LGPL-2.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"
langdir="/usr/share/quassel/translations"
subpackages="$pkgname-core $pkgname-client $pkgname-lang"
source="https://quassel-irc.org/pub/quassel-$pkgver.tar.bz2"

# secfixes:
#   0.12.5-r0:
#     - CVE-2018-1000178
#     - CVE-2018-1000179

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="3a0263d7bec9ef4b0d8ef6ea53784f95e0efbadc0f03b49005908411b0b53543ebc66189fb4100c117d87264b648f2a1b01be48c371f926b9f326b1ffc870685  quassel-0.12.5.tar.bz2"