wok annotate cpige/receipt @ rev 25050

Up memtest-efi* (6.00b2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 04 20:41:29 2022 +0000 (2022-06-04)
parents d8c511e24c20
children cb5bc40867f1
rev   line source
Hans-G?nter@20748 1 # SliTaz package receipt.
Hans-G?nter@20748 2
Hans-G?nter@20748 3 PACKAGE="cpige"
Hans-G?nter@20748 4 VERSION="1.5"
Hans-G?nter@20748 5 CATEGORY="multimedia"
Hans-G?nter@20748 6 TAGS="audio stream"
Hans-G?nter@20748 7 SHORT_DESC="A shoutcast and icecast stream downloader"
Hans-G?nter@20748 8 MAINTAINER="devel@slitaz.org"
Hans-G?nter@20748 9 LICENSE="GNU/GPL v2"
pascal@24909 10 WEB_SITE="https://github.com/zehome/cpige"
Hans-G?nter@20748 11
Hans-G?nter@20748 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20748 13 WGET_URL="http://old.ed.zehome.com/$PACKAGE/$TARBALL"
Hans-G?nter@20748 14
Hans-G?nter@20748 15 DEPENDS="gtk+"
Hans-G?nter@20748 16 BUILD_DEPENDS="gdk-pixbuf-dev gettext-tools gtk+-dev"
Hans-G?nter@20748 17
pascal@24491 18 # What is the latest version available today?
pascal@24491 19 current_version()
pascal@24491 20 {
pascal@24909 21 wget -O - https://github.com/zehome/cpige/releases 2>/dev/null | \
pascal@24909 22 sed '/archive.*tar/!d;s|.*/[a-z]-*\(.*\).tar.*|\1|;q'
pascal@24491 23 }
pascal@24491 24
Hans-G?nter@20748 25 # Rules to configure and make the package.
Hans-G?nter@20748 26 compile_rules()
Hans-G?nter@20748 27 {
Hans-G?nter@20748 28
Hans-G?nter@20748 29 # build CLI program
Hans-G?nter@20748 30 make clean &&
Hans-G?nter@20748 31 make
Hans-G?nter@20748 32
Hans-G?nter@20748 33 # build GUI program
Hans-G?nter@20748 34 cd gui
Hans-G?nter@20748 35 sed -i 's/gdk-2.0/gdk-pixbuf-2.0/' configure
Hans-G?nter@20748 36 ./configure &&
Hans-G?nter@20748 37 make
Hans-G?nter@20748 38 }
Hans-G?nter@20748 39
Hans-G?nter@20748 40 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@20748 41 genpkg_rules()
Hans-G?nter@20748 42 {
Hans-G?nter@20748 43 mkdir -p $fs/usr/bin
Hans-G?nter@20748 44 cp -a $src/cpige $fs/usr/bin
Hans-G?nter@20748 45 cp -a $src/gui/cpigeGUI $fs/usr/bin
Hans-G?nter@20748 46
pascal@20771 47 mkdir -p $fs/usr/share/doc/cpige $install/usr/share/man
Hans-G?nter@20748 48 cp -a $src/cpige.conf.example $fs/usr/share/doc/cpige
pascal@20771 49 cp -a $src/cpige.1.gz $install/usr/share/man
Hans-G?nter@20748 50
Hans-G?nter@20748 51 # Because there is no label msgfmt in Makefile:
Hans-G?nter@20748 52 mkdir -p $fs/usr/share/locale/fr/LC_MESSAGES
Hans-G?nter@20748 53 # only french texts available
Hans-G?nter@20748 54 msgfmt -o $fs/usr/share/locale/fr/LC_MESSAGES/cpige.mo \
Hans-G?nter@20748 55 $src/gui/cpige-fr.po
Hans-G?nter@20748 56
Hans-G?nter@20748 57 mkdir -p $fs/usr/share/icons/SliTaz/apps/22
Hans-G?nter@20748 58 cp $src/gui/cpigeGUI.ico $fs/usr/share/icons/SliTaz/apps/22
Hans-G?nter@20748 59
Hans-G?nter@20748 60 mkdir -p $fs/usr/share/applications
Hans-G?nter@20748 61 cp $stuff/cpige.desktop $fs/usr/share/applications
Hans-G?nter@20748 62
Hans-G?nter@20748 63 }