summaryrefslogblamecommitdiff
path: root/user/liblxqt/APKBUILD
blob: 4ca240cf8429a1a57de7b4ff09752cf76f011ab2 (plain) (tree)
1
2
3
4
5
6

                                                           
             
        
                           


































                                                                                                                                                                         
                                                                                                                                                                   
                                                                                                                                                   
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=liblxqt
pkgver=0.12.0
pkgrel=0
pkgdesc="Core LXQt library"
url="http://lxqt.org"
arch="all"
license="LGPL-2.1+"
depends=""
depends_dev=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtx11extras-dev qt5-qttools-dev libxscrnsaver-dev libqtxdg-dev kwindowsystem-dev lxqt-build-tools $depends_dev"
install=""
subpackages="$pkgname-dev"
source="https://github.com/lxde/liblxqt/releases/download/$pkgver/liblxqt-$pkgver.tar.xz
	versioning.patch"
builddir="$srcdir/liblxqt-$pkgver"
# no tests
options="!check"

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=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DPULL_TRANSLATIONS=False \
		${CMAKE_CROSSOPTS}
	make
}

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

sha512sums="63c6c7ca89dafa19242bfd62787af4711ad40369ba848191a5fc51693cf2a5b2d6684d613587d73c824a14d919c44699b440c66d37c51d776def258232736595  liblxqt-0.12.0.tar.xz
f81766a330ef0d5404f4723003ea486725588e0dda93d7784d31ed0ff8a59b17b764bd6df89b5da14318210585fc42d9d046ed0b2db6b52cb2e450daad7e0cd0  versioning.patch"