diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/lxqt-build-tools/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/user/lxqt-build-tools/APKBUILD b/user/lxqt-build-tools/APKBUILD new file mode 100644 index 000000000..b54e88ab3 --- /dev/null +++ b/user/lxqt-build-tools/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +pkgname=lxqt-build-tools +pkgver=0.4.0 +pkgrel=0 +pkgdesc="Toolchain for building & packaging LXQt." +url="http://lxqt.org" +arch="noarch" +license="BSD-3-Clause" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev" +install="" +subpackages="" +source="lxqt-build-tools-$pkgver.tar.gz::https://github.com/lxde/lxqt-build-tools/archive/$pkgver.tar.gz" +builddir="$srcdir/lxqt-build-tools-$pkgver" +# no tests to run; this package just provides a common base for scaffolding. +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" \ + ${CMAKE_CROSSOPTS} + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="4169080fb3c2ed986ec30d24106f5b61df081c7531ff259b3667497526f6cde4140cc3a09509220da5207e9383b8ac4b865c8f32380d19a9dc5d12d0ac15e381 lxqt-build-tools-0.4.0.tar.gz" |