summaryrefslogblamecommitdiff
path: root/user/lxqt-notificationd/APKBUILD
blob: 6c6e48df56ce110147f4061a572d3c28c5f0cf94 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                           

             

                                          


                   

                                                                                  
                                                                                                               





                                                                                          
                                  






                                                     
                                     



            
                            



                                          
                            


                                      
                                                                                                                                                                               
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=lxqt-notificationd
pkgver=0.14.0
pkgrel=0
pkgdesc="Daemon for notifications in LXQt"
url="https://lxqt.org"
arch="all"
license="LGPL-2.1+"
depends=""
makedepends="cmake extra-cmake-modules qt5-qttools-dev liblxqt-dev>=${pkgver%.*}.0
	lxqt-build-tools>=0.6.0 kwindowsystem-dev"
source="https://github.com/lxqt/lxqt-notificationd/releases/download/$pkgver/lxqt-notificationd-$pkgver.tar.xz"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	mkdir -p build && cd build
	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" \
		${CMAKE_CROSSOPTS} ..
	make
}

check() {
	cd "$builddir"/build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

sha512sums="b91f0fc159f979582d1483a020c27403157697232e15ac677ff725297f33a89e2df5d63b90bc3711bcf9c8fe1ad58793518ab116f4a9c47f8102dfa256fa4747  lxqt-notificationd-0.14.0.tar.xz"