testing/lxqt-build-tools: new aport

This commit is contained in:
Carlo Landmeter 2017-10-11 14:12:23 +02:00
parent 8954ee8b7f
commit efd00c5b63

View File

@ -0,0 +1,40 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=lxqt-build-tools
pkgver=0.4.0
pkgrel=0
pkgdesc="Various packaging tools and scripts for LXQt applications"
url="http://lxqt.org"
arch="all"
license="LGPL2.1"
depends=""
makedepends="cmake qt5-qttools-dev"
install=""
options="!check"
subpackages=""
source="https://github.com/lxde/lxqt-build-tools/releases/download/$pkgver/lxqt-build-tools-$pkgver.tar.xz"
builddir="$srcdir/lxqt-build-tools-$pkgver"
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="d84cfce5db9520725e24855f99fb3125f19ff5dbac12ec6d283e9c4483497c675b32061cdea2eda533e57857be4a6eb6020049ae4f593ea61a321b2708604638 lxqt-build-tools-0.4.0.tar.xz"