diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2017-10-13 09:21:27 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2017-10-13 09:21:27 +0000 |
commit | a49938932200b2972ba51a9c608a691ec87e37c8 (patch) | |
tree | 488306d1d5b86aca9cae224c1a31a1a031f934dd /user/libqtxdg/APKBUILD | |
parent | a93ebdadb41bd21db865f4b90a6fb0810a52a966 (diff) | |
parent | c75e4e0576fa24557efa0ef018646bf3dc51019b (diff) | |
download | packages-a49938932200b2972ba51a9c608a691ec87e37c8.tar.gz packages-a49938932200b2972ba51a9c608a691ec87e37c8.tar.bz2 packages-a49938932200b2972ba51a9c608a691ec87e37c8.tar.xz packages-a49938932200b2972ba51a9c608a691ec87e37c8.zip |
Merge LXQt desktop from @Aerdan
See merge request !3 for more details.
Diffstat (limited to 'user/libqtxdg/APKBUILD')
-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..edde815e9 --- /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" |