wok-6.x annotate moserial/receipt @ rev 25432
motion: adapted configuration parameters to version 4.4.0
author | Hans-G?nter Theisgen |
---|---|
date | Sun Aug 21 17:07:48 2022 +0100 (2022-08-21) |
parents | 04873d2f5f91 |
children |
rev | line source |
---|---|
domcox@14378 | 1 # SliTaz package receipt. |
domcox@14378 | 2 |
domcox@14378 | 3 PACKAGE="moserial" |
domcox@14378 | 4 VERSION="2.32.1" |
domcox@14378 | 5 CATEGORY="utilities" |
domcox@14378 | 6 SHORT_DESC="A gtk-based serial console." |
domcox@14378 | 7 MAINTAINER="domcox@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
domcox@14378 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
domcox@14378 | 10 WEB_SITE="https://live.gnome.org/moserial" |
domcox@14378 | 11 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/$PACKAGE/${VERSION%.*}/$TARBALL" |
domcox@14378 | 12 LOCALES="da de es fr pt_BR zh_CN" |
domcox@14378 | 13 TAGS="serial console" |
domcox@14378 | 14 |
domcox@14378 | 15 DEPENDS="GConf gnome-doc-utils gtk+" |
pascal@22817 | 16 BUILD_DEPENDS="GConf-dev gnome-doc-utils-dev intltool pkg-config vala \ |
pascal@22817 | 17 gtk+-dev dbus-glib-dev" |
domcox@14378 | 18 |
pascal@24111 | 19 current_version() |
pascal@24111 | 20 { |
pascal@24111 | 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24111 | 22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24111 | 23 } |
domcox@14378 | 24 |
domcox@14378 | 25 # Rules to configure and make the package. |
domcox@14378 | 26 compile_rules() |
domcox@14378 | 27 { |
domcox@14378 | 28 # removing help |
domcox@14378 | 29 patch -Np3 -i $stuff/glade.patch |
domcox@14378 | 30 # build |
domcox@14378 | 31 ./configure $CONFIGURE_ARGS \ |
domcox@14378 | 32 --prefix="/usr" && |
domcox@14378 | 33 make && |
domcox@14378 | 34 make DESTDIR=$DESTDIR install |
domcox@14378 | 35 } |
domcox@14378 | 36 |
domcox@14378 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@14378 | 38 # |
domcox@14378 | 39 genpkg_rules() |
domcox@14378 | 40 { |
al@16691 | 41 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/locale |
pascal@22817 | 42 sed -i '/=;$/d' $install/usr/share/applications/moserial.desktop |
domcox@14378 | 43 cp -a $install/usr/bin $fs/usr |
domcox@14378 | 44 cp -a $install/usr/share/moserial $fs/usr/share |
domcox@14378 | 45 cp -a $install/usr/share/icons/hicolor/48x48/apps/moserial.png \ |
domcox@14378 | 46 $fs/usr/share/pixmaps |
domcox@14378 | 47 for locale in $LOCALES; do |
domcox@14378 | 48 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale |
domcox@14378 | 49 done |
domcox@14378 | 50 chown -R root.root $fs |
domcox@14378 | 51 } |