wok view dialog/receipt @ rev 24384

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 06 16:04:43 2022 +0000 (2022-02-06)
parents 7e911016a644
children 73cd26fd8ff2
line source
1 # SliTaz package receipt.
3 PACKAGE="dialog"
4 VERSION="1.3_20210324"
5 CATEGORY="base-system"
6 SHORT_DESC="Script-interpreter which provides a set of curses widgets."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://invisible-island.net/dialog/"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 WGET_URL="https://invisible-mirror.net/archives/$PACKAGE/$PACKAGE-${VERSION/_/-}.tgz"
14 DEPENDS="ncursesw"
15 BUILD_DEPENDS="ncursesw-dev"
17 HOST_ARCH="i486 arm"
19 current_version()
20 {
21 wget -O - ftp://ftp.invisible-island.net/dialog/ 2>/dev/null | \
22 sed '/gz"/!d;s|.*dialog-||;s|.tgz.*||;s|-|_|' | sed '$!d'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --mandir=/usr/share/man \
32 --with-ncursesw \
33 --enable-nls \
34 --enable-widec \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 mkdir -p $fs/etc
46 cp -a $install/usr/bin $fs/usr
48 # Configuration file.
49 cp $stuff/dialogrc $fs/etc
51 # Localisations:
52 for lang in da de fr id it pt_BR ro ru
53 do
54 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
55 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/dialog.mo \
56 $fs/usr/share/locale/$lang/LC_MESSAGES/dialog.mo
57 done
58 }