wok-6.x annotate lxqt-panel/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents c0ce132ba4ee
children 72421749b88c
rev   line source
al@16833 1 # SliTaz package receipt.
al@16833 2
al@16833 3 PACKAGE="lxqt-panel"
al@17222 4 VERSION="0.8.0"
al@17516 5 CATEGORY="system-tools"
al@16833 6 SHORT_DESC="The LXQt desktop panel"
al@16833 7 MAINTAINER="al.bobylev@gmail.com"
al@16833 8 LICENSE="LGPL2.1"
al@16833 9 WEB_SITE="https://github.com/lxde/lxqt-panel"
al@16833 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@16833 11 WGET_URL="https://github.com/lxde/$PACKAGE/archive/$VERSION.tar.gz"
al@16833 12 TAGS="LXQt"
al@16833 13
al@16833 14 DEPENDS="alsa-lib icu libQtCore libQtDBus libQtGui libQtXml libqtxdg \
al@16833 15 libstatgrab lm-sensors pcre xorg-libX11 xorg-libXcomposite xorg-libXdamage \
al@16833 16 xorg-libXext xorg-libXfixes xorg-libXrender lxqt-globalkeys liblxqt \
al@16833 17 liblxqt-mount menu-cache libsysstat"
al@16833 18 SUGGESTED="qastools xscreensaver"
al@16833 19 BUILD_DEPENDS="wget cacerts cmake Qt4-dev qmake xorg-libX11-dev liblxqt-dev \
al@16833 20 libqtxdg-dev lxqt-globalkeys-dev liblxqt-mount-dev xorg-libXcomposite-dev \
al@16833 21 xorg-libXdamage-dev xorg-libXrender-dev menu-cache-dev libstatgrab-dev \
al@17222 22 lm-sensors-dev alsa-lib-dev libsysstat-dev icu-dev grep glib-dev \
al@17222 23 libQtMimeTypes-dev"
al@16833 24
pascal@24055 25 current_version()
pascal@24055 26 {
pascal@24055 27 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 28 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 29 }
pascal@24055 30
al@16833 31 # Rules to configure and make the package.
al@16833 32 compile_rules()
al@16833 33 {
al@17222 34 patch -p0 < $stuff/fix_sysstat_plugin.patch
al@17222 35
al@16833 36 mkdir build; cd build
al@16833 37 cmake \
al@16833 38 -DCMAKE_INSTALL_PREFIX=/usr \
al@16833 39 -DVOLUME_USE_PULSEAUDIO=No \
al@16833 40 -DTEATIME_PLUGIN=Yes \
al@16833 41 .. &&
al@16833 42 make &&
al@16833 43 make DESTDIR=$install install
al@16833 44 }
al@16833 45
al@16833 46 # Rules to gen a SliTaz package suitable for Tazpkg.
al@16833 47 genpkg_rules()
al@16833 48 {
al@16833 49 mkdir -p $fs/usr/share/lxqt/lxqt-panel
al@16833 50 cp -a $install/etc $fs
al@16833 51 cp -a $install/usr/bin $install/usr/lib $fs/usr
al@16833 52 cp -a $install/usr/share/lxqt/lxqt-panel/*.desktop $fs/usr/share/lxqt/lxqt-panel
al@16833 53 }