summaryrefslogblamecommitdiff
path: root/user/libfm-qt/APKBUILD
blob: ccf7a2fe01bdb3edbb9066acefac5c4331607101 (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=libfm-qt
pkgver=0.12.0
pkgrel=0
pkgdesc="Qt library for file management and bindings for libfm"
url="http://lxqt.org"
arch="all"
license="LGPL-2.1+"
depends=""
depends_dev="libfm-dev menu-cache-dev libexif-dev"
makedepends="cmake extra-cmake-modules lxqt-build-tools qt5-qtx11extras-dev qt5-qttools-dev $depends_dev"
install=""
subpackages="$pkgname-dev"
source="https://github.com/lxde/libfm-qt/releases/download/$pkgver/libfm-qt-$pkgver.tar.xz"
builddir="$srcdir/libfm-qt-$pkgver"

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" \
		-DPULL_TRANSLATIONS=False \
		${CMAKE_CROSSOPTS} ..
	make
}

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

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

sha512sums="5c6aa4341672ff7c9d992cf248cff8c8e7f4eaa6e76ed9cc0655bc1a7dcb1cc7768136bb7509c2326a23d93159fa4496151fe284b9129503c03a11c852a60c43  libfm-qt-0.12.0.tar.xz"