diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2017-10-11 06:41:54 +0000 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2017-10-11 06:41:54 +0000 |
commit | 359c4644d505a52cb5fc5f2516f184a3d6c46209 (patch) | |
tree | a53367bc9336299f1a793dc4a6a5cf808114a395 /user/lxqt-build-tools | |
parent | aa4b2c826d39671c10ef4246ba8aa5558319d8ab (diff) | |
download | packages-359c4644d505a52cb5fc5f2516f184a3d6c46209.tar.gz packages-359c4644d505a52cb5fc5f2516f184a3d6c46209.tar.bz2 packages-359c4644d505a52cb5fc5f2516f184a3d6c46209.tar.xz packages-359c4644d505a52cb5fc5f2516f184a3d6c46209.zip |
user/lxqt-build-tools: new package
Diffstat (limited to 'user/lxqt-build-tools')
-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" |