wok view icon-naming-utils/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents af8d823a3077
children ab858238497c
line source
1 # SliTaz package receipt.
3 PACKAGE="icon-naming-utils"
4 VERSION="0.8.90"
5 CATEGORY="x-window"
6 SHORT_DESC="Perl script used for desktop icon compatibility"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://tango.freedesktop.org/Tango_Icon_Library"
11 WGET_URL="http://tango.freedesktop.org/releases/$TARBALL"
13 DEPENDS="perl perl-xml-simple"
14 BUILD_DEPENDS="perl perl-xml-simple"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed '/icecast-/!d;/tar/!d;/-beta/d;s|.*icecast-||;s|.tar.*||' | sort -Vr | sed q
21 }
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - ${WGET_URL%/*} 2>/dev/null | \
27 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 cd $src
34 ./configure \
35 --prefix=/usr \
36 --libexecdir=/usr/lib/icon-naming-utils \
37 $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share
46 cp -a $install/usr/lib $fs/usr
47 cp -a $install/usr/share/dtds $fs/usr/share
48 cp -a $install/usr/share/$PACKAGE $fs/usr/share
50 chmod +x $fs/usr/lib/$PACKAGE/*
52 # For one file we are not going to build a -dev pkg
53 cp -a $install/usr/share/pkgconfig $fs/usr/lib
54 }