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