wok annotate cpige/receipt @ rev 21115
libaio: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 19 18:51:13 2019 +0100 (2019-03-19) |
parents | e87d1c820fff |
children | d8cc3407c851 |
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" |
Hans-G?nter@20748 | 10 WEB_SITE="http://old.ed.zehome.com/?page=cpige-en" |
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 |
Hans-G?nter@20748 | 18 |
Hans-G?nter@20748 | 19 # Rules to configure and make the package. |
Hans-G?nter@20748 | 20 compile_rules() |
Hans-G?nter@20748 | 21 { |
Hans-G?nter@20748 | 22 |
Hans-G?nter@20748 | 23 # build CLI program |
Hans-G?nter@20748 | 24 make clean && |
Hans-G?nter@20748 | 25 make |
Hans-G?nter@20748 | 26 |
Hans-G?nter@20748 | 27 # build GUI program |
Hans-G?nter@20748 | 28 cd gui |
Hans-G?nter@20748 | 29 sed -i 's/gdk-2.0/gdk-pixbuf-2.0/' configure |
Hans-G?nter@20748 | 30 ./configure && |
Hans-G?nter@20748 | 31 make |
Hans-G?nter@20748 | 32 } |
Hans-G?nter@20748 | 33 |
Hans-G?nter@20748 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@20748 | 35 genpkg_rules() |
Hans-G?nter@20748 | 36 { |
Hans-G?nter@20748 | 37 mkdir -p $fs/usr/bin |
Hans-G?nter@20748 | 38 cp -a $src/cpige $fs/usr/bin |
Hans-G?nter@20748 | 39 cp -a $src/gui/cpigeGUI $fs/usr/bin |
Hans-G?nter@20748 | 40 |
pascal@20771 | 41 mkdir -p $fs/usr/share/doc/cpige $install/usr/share/man |
Hans-G?nter@20748 | 42 cp -a $src/cpige.conf.example $fs/usr/share/doc/cpige |
pascal@20771 | 43 cp -a $src/cpige.1.gz $install/usr/share/man |
Hans-G?nter@20748 | 44 |
Hans-G?nter@20748 | 45 # Because there is no label msgfmt in Makefile: |
Hans-G?nter@20748 | 46 mkdir -p $fs/usr/share/locale/fr/LC_MESSAGES |
Hans-G?nter@20748 | 47 # only french texts available |
Hans-G?nter@20748 | 48 msgfmt -o $fs/usr/share/locale/fr/LC_MESSAGES/cpige.mo \ |
Hans-G?nter@20748 | 49 $src/gui/cpige-fr.po |
Hans-G?nter@20748 | 50 |
Hans-G?nter@20748 | 51 mkdir -p $fs/usr/share/icons/SliTaz/apps/22 |
Hans-G?nter@20748 | 52 cp $src/gui/cpigeGUI.ico $fs/usr/share/icons/SliTaz/apps/22 |
Hans-G?nter@20748 | 53 |
Hans-G?nter@20748 | 54 mkdir -p $fs/usr/share/applications |
Hans-G?nter@20748 | 55 cp $stuff/cpige.desktop $fs/usr/share/applications |
Hans-G?nter@20748 | 56 |
Hans-G?nter@20748 | 57 } |