wok view openmotif/receipt @ rev 25769
libmaxminddb, ndpi: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 09:45:40 2024 +0000 (3 months ago) |
parents | 080c1dff8494 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="openmotif"
4 VERSION="2.3.8"
5 CATEGORY="development"
6 SHORT_DESC="Source code version of Motif under a public license."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL 2.1"
9 WEB_SITE="http://www.opengroup.org/openmotif/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/motif/motif-$VERSION.tar.gz"
14 DEPENDS="expat fontconfig freetype jpeg libpng xorg xorg-libXft xorg-libXp"
15 BUILD_DEPENDS="bison expat-dev flex fontconfig-dev freetype-dev jpeg-dev \
16 libpng-dev libxml2-dev util-linux-uuid-dev xorg-dev-proto xorg-libSM-dev \
17 xorg-libX11-dev xorg-libXft-dev xorg-libXmu xorg-libXmu-dev xorg-libXp \
18 xorg-libXrender-dev xorg-libXt-dev xorg-printproto xorg-xbitmaps \
19 xorg-xextproto xorg-xproto"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://sourceforge.net/projects/motif/files/ 2>/dev/null | \
25 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
26 sed '/scope="row/!d;s|.*/Motif%20||;s|%20.*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make -j 1 &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
46 cp -a $install/usr/bin $fs/usr
47 rm -f $fs/usr/bin/uil
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 cp -a $install/usr/lib/X11 $fs/usr/lib
51 }