wok view cpige/receipt @ rev 25364

cpige: apply gibor patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 28 14:38:50 2022 +0000 (21 months ago)
parents 7f7aa9a311bf
children 9753324921b9
line source
1 # SliTaz package receipt.
3 PACKAGE="cpige"
4 VERSION="1.7"
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="https://github.com/zehome/cpige/archive/refs/tags/$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 {
28 sed -i 's|-static ||' Makefile
30 patch -p1 < $stuff/cpige.patch
32 # build CLI program
33 make clean &&
34 make
36 # build GUI program
37 cd gui
38 sed -i 's/gdk-2.0/gdk-pixbuf-2.0/' configure
39 ./configure &&
40 make
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/bin
47 cp -a $src/cpige $fs/usr/bin
48 cp -a $src/gui/cpigeGUI $fs/usr/bin
50 mkdir -p $fs/usr/share/doc/cpige $install/usr/share/man
51 cp -a $src/cpige.conf.example $fs/usr/share/doc/cpige
52 cp -a $src/cpige.1.gz $install/usr/share/man
54 # Because there is no label msgfmt in Makefile:
55 mkdir -p $fs/usr/share/locale/fr/LC_MESSAGES
56 # only french texts available
57 msgfmt -o $fs/usr/share/locale/fr/LC_MESSAGES/cpige.mo \
58 $src/gui/cpige-fr.po
60 mkdir -p $fs/usr/share/icons/hicolor/22x22/apps/
61 cp $src/gui/cpigeGUI.png $fs/usr/share/icons/hicolor/22x22/apps/
63 mkdir -p $fs/usr/share/applications
64 cp $stuff/cpige.desktop $fs/usr/share/applications
66 }