wok-current annotate gvfb/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | 4486847417ab |
children |
rev | line source |
---|---|
pascal@19337 | 1 # SliTaz package receipt. |
pascal@19337 | 2 |
pascal@19337 | 3 PACKAGE="gvfb" |
Hans-G?nter@21018 | 4 VERSION="1.2.1" |
pascal@19337 | 5 CATEGORY="x-window" |
pascal@19338 | 6 SHORT_DESC="A virtual frame buffer program running on GTK." |
pascal@19337 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19337 | 8 LICENSE="GPL3" |
Hans-G?nter@21018 | 9 WEB_SITE="http://www.minigui.org/" |
Hans-G?nter@21018 | 10 |
pascal@19337 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@19337 | 12 WGET_URL="${WEB_SITE}downloads/$TARBALL" |
pascal@19337 | 13 |
pascal@19337 | 14 DEPENDS="gtk+" |
Hans-G?nter@21018 | 15 BUILD_DEPENDS="cmake gtk+-dev pkg-config" |
pascal@19337 | 16 |
pascal@24427 | 17 # What is the latest version available today? |
pascal@24427 | 18 current_version() |
pascal@24427 | 19 { |
pascal@24427 | 20 wget -O - ${WEB_SITE}download 2>/dev/null | \ |
pascal@24427 | 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24427 | 22 } |
pascal@24427 | 23 |
pascal@19337 | 24 # Rules to configure and make the package. |
pascal@19337 | 25 compile_rules() |
pascal@19337 | 26 { |
pascal@19337 | 27 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11" |
pascal@19337 | 28 mkdir built |
pascal@19337 | 29 cd built |
Hans-G?nter@21018 | 30 |
Hans-G?nter@21018 | 31 cmake \ |
Hans-G?nter@21018 | 32 -DCMAKE_MINIMUM_REQUIRED_VERSION=3.0 \ |
Hans-G?nter@21018 | 33 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@21018 | 34 ../src |
Hans-G?nter@21018 | 35 make -j 1 && |
pascal@19337 | 36 make DESTDIR=$DESTDIR install |
pascal@19337 | 37 } |
pascal@19337 | 38 |
pascal@19337 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19337 | 40 genpkg_rules() |
pascal@19337 | 41 { |
pascal@19337 | 42 mkdir -p $fs/usr |
Hans-G?nter@21018 | 43 |
pascal@19337 | 44 cp -a $install/usr/bin $fs/usr |
pascal@19337 | 45 } |