diff options
-rw-r--r-- | user/libqtxdg/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/user/libqtxdg/APKBUILD b/user/libqtxdg/APKBUILD new file mode 100644 index 000000000..b42af0eb8 --- /dev/null +++ b/user/libqtxdg/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +pkgname=libqtxdg +pkgver=3.0.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="de3ca26c1f682f3ec3409dd81a397ec573f981ac71e7eab6f410bba18df7d45c6e0d7a037990cccd04901eda8de99aa059c5e090c26f59b560b7f61a4630ae23 libqtxdg-3.0.0.tar.xz" |