wok view obconf-qt/receipt @ rev 24411

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 09 17:57:59 2022 +0000 (2022-02-09)
parents 7aac542e058a
children 7364ffdaaa60
line source
1 # SliTaz package receipt.
3 PACKAGE="obconf-qt"
4 VERSION="0.1.0"
5 CATEGORY="x-window"
6 SHORT_DESC="The Qt port of obconf, the Openbox configuration tool"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://github.com/lxde/obconf-qt"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/lxde/$PACKAGE/archive/$VERSION.tar.gz"
12 TAGS="LXQt"
14 DEPENDS="bzlib fontconfig freetype libQtCore libQtGui libffi libxml2 openbox \
15 pango pcre xorg-libICE xorg-libSM xorg-libX11 xorg-libXft zlib"
16 BUILD_DEPENDS="wget cacerts cmake Qt4-dev qmake openbox-dev glib-dev \
17 xorg-libXft-dev pango-dev"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir build; cd build
29 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
30 make &&
31 make DESTDIR=$install install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/* $fs
38 }