summaryrefslogblamecommitdiff
path: root/user/libfm-qt/APKBUILD
blob: f69e6a700079ab4cf838c47516bbf8e7d45f19fc (plain) (tree)














































                                                                                                                                                                    
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=libfm-qt
pkgver=0.11.2
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"
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
	libfm-qt-0.11.2-const-fixes.patch"
builddir="$srcdir/libfm-qt-$pkgver"

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

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

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

sha512sums="f31ec46bb7b6aa98bdbf619dba6d18f6180603a88ef841d7330565dab9d604714406075ab20d35c8356ff93eca84478d98e835f2057f5d4cc0339fa448f05570  libfm-qt-0.11.2.tar.xz
80a92f55832bd69ad9c7b8e14e72fc2c5a0f8d659cc60efca23eb29577180ac9c11b931a500262d4e6ebb290af28effa71ec6255ed77660f7fb14e6ff455fa45  libfm-qt-0.11.2-const-fixes.patch"