aboutsummaryrefslogblamecommitdiffstats
path: root/community/kfilemetadata/APKBUILD
blob: e72e65732f705a6d518dd5bab1e82cc67489fdd3 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
             
        



                                                                
                                                                                                                        
                                                                      
                                                                                             

                                                     

                       
 


                               
         

                            
                                                   






                                             
                            





                                                                                                                          
                            


                                      
                                                                                                                                                                          
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kfilemetadata
pkgver=5.65.0
pkgrel=0
pkgdesc="A library for extracting file metadata"
arch="all"
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-or-later AND (LGPL-2.1-only OR LGPL-3.0-only)"
depends_dev="qt5-qtbase-dev karchive-dev kcoreaddons-dev ki18n-dev kconfig-dev exiv2-dev taglib-dev ffmpeg-dev attr-dev"
makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kfilemetadata-$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
	# extractorcoveragetest, propertyinfotest_localized, extractorcollectiontest fail on armhf
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E '(extractorcoveragetest|propertyinfotest_localized|extractorcollectiontest)'
}


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

sha512sums="1160630c6117337f7aab3e7b74e56678b093abd72bf891f14ed75a63a36783f18e597d8a076a588fd471ff81c30cc68c0a32efe154882c6d24591380807e5571  kfilemetadata-5.65.0.tar.xz"