wok view cpige/receipt @ rev 25570
created recipe for rubberband-dev
author | Hans-G?nter Theisgen |
---|---|
date | Sat May 13 10:31:53 2023 +0100 (18 months ago) |
parents | c6c2c42e733e |
children | fe1b5660fdd1 |
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 patch -p1 < $stuff/cpige.patch
30 # build CLI program
31 make clean &&
32 make
34 # build GUI program
35 cd gui
36 sed -i 's/gdk-2.0/gdk-pixbuf-2.0/' configure
37 ./configure &&
38 make
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/bin
45 cp -a $src/cpige $fs/usr/bin
46 cp -a $src/gui/cpigeGUI $fs/usr/bin
48 mkdir -p $fs/usr/share/doc/cpige $install/usr/share/man
49 cp -a $src/cpige.conf.example $fs/usr/share/doc/cpige
50 cp -a $src/cpige.1.gz $install/usr/share/man
52 # Because there is no label msgfmt in Makefile:
53 mkdir -p $fs/usr/share/locale/fr/LC_MESSAGES
54 # only french texts available
55 msgfmt -o $fs/usr/share/locale/fr/LC_MESSAGES/cpige.mo \
56 $src/gui/cpige-fr.po
58 mkdir -p $fs/usr/share/icons/hicolor/22x22/apps/
59 cp $src/gui/cpigeGUI.png $fs/usr/share/icons/hicolor/22x22/apps/
61 mkdir -p $fs/usr/share/applications
62 cp $stuff/cpige.desktop $fs/usr/share/applications
64 }