wok view cpige/receipt @ rev 24525
Up libav (0.6.6 -> 12.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 22 16:15:28 2022 +0000 (2022-02-22) |
parents | 2a0479881723 |
children | fff755dd0f58 |
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - "$WEB_SITE" 2>/dev/null | \
22 sed '/Version /!d;s|.*sion ||;s|<.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
29 # build CLI program
30 make clean &&
31 make
33 # build GUI program
34 cd gui
35 sed -i 's/gdk-2.0/gdk-pixbuf-2.0/' configure
36 ./configure &&
37 make
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/bin
44 cp -a $src/cpige $fs/usr/bin
45 cp -a $src/gui/cpigeGUI $fs/usr/bin
47 mkdir -p $fs/usr/share/doc/cpige $install/usr/share/man
48 cp -a $src/cpige.conf.example $fs/usr/share/doc/cpige
49 cp -a $src/cpige.1.gz $install/usr/share/man
51 # Because there is no label msgfmt in Makefile:
52 mkdir -p $fs/usr/share/locale/fr/LC_MESSAGES
53 # only french texts available
54 msgfmt -o $fs/usr/share/locale/fr/LC_MESSAGES/cpige.mo \
55 $src/gui/cpige-fr.po
57 mkdir -p $fs/usr/share/icons/SliTaz/apps/22
58 cp $src/gui/cpigeGUI.ico $fs/usr/share/icons/SliTaz/apps/22
60 mkdir -p $fs/usr/share/applications
61 cp $stuff/cpige.desktop $fs/usr/share/applications
63 }