aboutsummaryrefslogblamecommitdiffstats
path: root/community/kdnssd/APKBUILD
blob: 7695078fed806ff2e5a80ff3f659cb7f606a7985 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                                  
             







                                                                      
                                                                                      

                                                     

                       
 


                               
         

                            
                                                   






                                             
                            



                                          
                            

                                      
                                                                                                                                                                   
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdnssd
pkgver=5.65.0
pkgrel=0
arch="all"
pkgdesc="Network service discovery using Zeroconf"
url="https://community.kde.org/Frameworks"
license="LGPL-2.0-or-later"
depends="avahi"
depends_dev="qt5-qtbase-dev avahi-dev"
makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kdnssd-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"

prepare() {
	default_prepare

	mkdir "$builddir"/build
}

build() {
	cd "$builddir"/build
	cmake "$builddir" \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QCH=ON
	make
}

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

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" make install
}
sha512sums="c11e6fd38c3dff8a0b315b3d6195d94acfb17a2f1ca1e7da5ec642c50a0ffb5f1b576909b33f2be870bfab4613b4c66f0de4a2ea833a7c64dc64a84a331d60b8  kdnssd-5.65.0.tar.xz"