wok view cpige/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 d8c511e24c20
children cb5bc40867f1
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://github.com/zehome/cpige"
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 - https://github.com/zehome/cpige/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/[a-z]-*\(.*\).tar.*|\1|;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 }