wok view libmatchbox/receipt @ rev 24447

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 17:51:14 2022 +0000 (2022-02-14)
parents 288d42424f1e
children 742d338c8574
line source
1 # SliTaz package receipt.
3 PACKAGE="libmatchbox"
4 VERSION="1.12"
5 CATEGORY="x-window"
6 SHORT_DESC="Matchbox shared library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://www.yoctoproject.org/software-item/matchbox/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://git.yoctoproject.org/cgit/cgit.cgi/$PACKAGE/snapshot/$TARBALL"
14 DEPENDS="pango"
15 BUILD_DEPENDS="autoconf automake jpeg-dev libtool libxml2-dev pango-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://git.yoctoproject.org/libmatchbox/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/zip/!d;s|.*$PACKAGE-||;s|.zip.*||" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
28 #--enable-xsettings
30 ./autogen.sh &&
31 ./configure \
32 --enable-pango \
33 --enable-jpeg \
34 $CONFIGURE_ARGS &&
35 make &&
36 make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 }