summaryrefslogblamecommitdiff
path: root/user/libqtxdg/APKBUILD
blob: f7b50bf9fdeecafa86faa5a222b97b8f00bac36f (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=libqtxdg
pkgver=3.1.0
pkgrel=0
pkgdesc="Qt5-based library implementing the XDG spec"
url="http://lxqt.org"
arch="all"
license="LGPL-2.1+"
depends=""
depends_dev=""
makedepends="cmake qt5-qtbase-dev qt5-qtsvg-dev extra-cmake-modules $depends_dev"
install=""
subpackages="$pkgname-dev"
source="https://github.com/lxde/libqtxdg/releases/download/$pkgver/libqtxdg-$pkgver.tar.xz"
builddir="$srcdir/libqtxdg-$pkgver"
# tests require X
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" \
		-DBUILD_TESTS=True \
		-DBUILD_DEV_UTILS=True \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="58c02b804a5fac38e13cfd0ea5b9c5dc547d2f0a4324ac2f8d62d6050164f3f19edf48c5466a227fc3439f76436db4535ae1855dc21c4d92fe086c89267754fd  libqtxdg-3.1.0.tar.xz"