wok-next annotate lxqt-config/receipt @ rev 20862

lzip: up (1.20); rpm4 -> rpm: up (4.14.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 28 01:53:42 2018 +0300 (2018-06-28)
parents c0521c689857
children f48456621a9d
rev   line source
al@19989 1 # SliTaz package receipt v2.
al@16833 2
al@16833 3 PACKAGE="lxqt-config"
al@20318 4 VERSION="0.12.0"
al@16833 5 CATEGORY="system-tools"
al@19989 6 SHORT_DESC="Tools to configure LXQt and the underlying operating system"
al@16833 7 MAINTAINER="al.bobylev@gmail.com"
al@16833 8 LICENSE="LGPL2.1"
al@16833 9 WEB_SITE="https://github.com/lxde/lxqt-config"
al@19989 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/lxqt/lxqt-config.html"
al@16833 11
al@19989 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19989 13 WGET_URL="https://github.com/lxde/lxqt-config/releases/download/$VERSION/$TARBALL"
al@16833 14
al@20502 15 BUILD_DEPENDS="cmake qt5-dev mesa-dev liblxqt-dev kwindowsystem-dev \
al@20503 16 lxqt-build-tools libkscreen-dev xorg-libXcursor-dev zlib-dev"
al@19989 17
al@19989 18 compile_rules() {
al@19989 19 # temporary workaround due to cmake-3.8
al@19989 20 new='../liblxqt-config-cursor/lxqt-config-cursor_autogen/include'
al@19989 21 sed -i "/CURRENT_BINARY_DIR/a \"\${CMAKE_CURRENT_BINARY_DIR}/$new\"" \
al@19989 22 lxqt-config-appearance/CMakeLists.txt \
al@19989 23 lxqt-config-input/CMakeLists.txt
al@19989 24 unset new
al@19989 25
al@16833 26 mkdir build; cd build
al@19989 27 cmake \
al@19989 28 -DCMAKE_BUILD_TYPE=Release \
al@19989 29 -DCMAKE_INSTALL_PREFIX=/usr \
al@19989 30 -DCMAKE_INSTALL_LIBDIR=lib \
al@19989 31 -DPULL_TRANSLATIONS=no \
al@19989 32 .. &&
al@16833 33 make &&
al@19989 34 make install
al@16833 35 }
al@16833 36
al@19989 37 genpkg_rules() {
al@19989 38 copy @std lxqt-config # usually /usr/bin/*-config is dev, but not this time
al@19989 39 DEPENDS="kwindowsystem libkscreen liblxqt libqtxdg qt5-base qt5-svg \
al@19989 40 qt5-x11extras xorg-libX11 xorg-libXcursor xorg-libXext xorg-libXfixes \
al@19989 41 xorg-libxcb zlib"
al@19989 42 TAGS="LXQt"
al@16833 43 }