diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2017-10-11 06:25:53 +0000 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2017-10-11 06:25:53 +0000 |
commit | aa4b2c826d39671c10ef4246ba8aa5558319d8ab (patch) | |
tree | ba36715fe6291cab281a3a008d6cf611279e5ad9 /user/libqtxdg | |
parent | a524397edf77b9f7eda2a8c609119e489b7296f9 (diff) | |
download | packages-aa4b2c826d39671c10ef4246ba8aa5558319d8ab.tar.gz packages-aa4b2c826d39671c10ef4246ba8aa5558319d8ab.tar.bz2 packages-aa4b2c826d39671c10ef4246ba8aa5558319d8ab.tar.xz packages-aa4b2c826d39671c10ef4246ba8aa5558319d8ab.zip |
user/libqtxdg: new package
Diffstat (limited to 'user/libqtxdg')
-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" |