wok view cpige/receipt @ rev 24436

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 13:09:42 2022 +0000 (2022-02-13)
parents d8cc3407c851
children d8c511e24c20
line source
1 # SliTaz package receipt.
3 PACKAGE="cpige"
4 VERSION="1.5"
5 CATEGORY="multimedia"
6 TAGS="audio stream"
7 SHORT_DESC="A shoutcast and icecast stream downloader"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GNU/GPL v2"
10 WEB_SITE="https://old.ed.zehome.com/?page=cpige-en"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://old.ed.zehome.com/$PACKAGE/$TARBALL"
15 DEPENDS="gtk+"
16 BUILD_DEPENDS="gdk-pixbuf-dev gettext-tools gtk+-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
22 # build CLI program
23 make clean &&
24 make
26 # build GUI program
27 cd gui
28 sed -i 's/gdk-2.0/gdk-pixbuf-2.0/' configure
29 ./configure &&
30 make
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin
37 cp -a $src/cpige $fs/usr/bin
38 cp -a $src/gui/cpigeGUI $fs/usr/bin
40 mkdir -p $fs/usr/share/doc/cpige $install/usr/share/man
41 cp -a $src/cpige.conf.example $fs/usr/share/doc/cpige
42 cp -a $src/cpige.1.gz $install/usr/share/man
44 # Because there is no label msgfmt in Makefile:
45 mkdir -p $fs/usr/share/locale/fr/LC_MESSAGES
46 # only french texts available
47 msgfmt -o $fs/usr/share/locale/fr/LC_MESSAGES/cpige.mo \
48 $src/gui/cpige-fr.po
50 mkdir -p $fs/usr/share/icons/SliTaz/apps/22
51 cp $src/gui/cpigeGUI.ico $fs/usr/share/icons/SliTaz/apps/22
53 mkdir -p $fs/usr/share/applications
54 cp $stuff/cpige.desktop $fs/usr/share/applications
56 }