wok-current annotate dialog/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents 73cd26fd8ff2
children
rev   line source
pankso@35 1 # SliTaz package receipt.
pankso@35 2
pankso@35 3 PACKAGE="dialog"
Hans-G?nter@24477 4 VERSION="1.3_20220117"
pankso@211 5 CATEGORY="base-system"
pankso@35 6 SHORT_DESC="Script-interpreter which provides a set of curses widgets."
pankso@35 7 MAINTAINER="pankso@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
Hans-G?nter@24031 9 WEB_SITE="https://invisible-island.net/dialog/"
Hans-G?nter@20826 10
pascal@1482 11 TARBALL="$PACKAGE-$VERSION.tgz"
Hans-G?nter@24031 12 WGET_URL="https://invisible-mirror.net/archives/$PACKAGE/$PACKAGE-${VERSION/_/-}.tgz"
pankso@12840 13
pankso@12840 14 DEPENDS="ncursesw"
pankso@12840 15 BUILD_DEPENDS="ncursesw-dev"
Hans-G?nter@24031 16
Hans-G?nter@20826 17 HOST_ARCH="i486 arm"
pankso@35 18
pascal@24614 19 # What is the latest version available today?
pascal@24069 20 current_version()
pascal@24069 21 {
pascal@24614 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24614 23 sed '/dialog-/!d;/gz"/!d;s|.*dialog-||;s|.t.*||;s|-|_|' | sort -Vr | sed q
pascal@24069 24 }
pascal@24069 25
pankso@35 26 # Rules to configure and make the package.
pankso@35 27 compile_rules()
pankso@35 28 {
Hans-G?nter@24031 29 ./configure \
Hans-G?nter@24031 30 --prefix=/usr \
Hans-G?nter@24031 31 --sysconfdir=/etc \
Hans-G?nter@24031 32 --mandir=/usr/share/man \
Hans-G?nter@24031 33 --with-ncursesw \
Hans-G?nter@24031 34 --enable-nls \
Hans-G?nter@24031 35 --enable-widec \
pankso@4895 36 $CONFIGURE_ARGS &&
Hans-G?nter@20826 37 make &&
Hans-G?nter@24477 38 make install DESTDIR=$DESTDIR
pankso@35 39 }
pankso@35 40
pankso@35 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@35 42 genpkg_rules()
pankso@35 43 {
Hans-G?nter@24031 44 mkdir -p $fs/usr
Hans-G?nter@24031 45 mkdir -p $fs/etc
Hans-G?nter@20826 46
Hans-G?nter@24031 47 cp -a $install/usr/bin $fs/usr
Hans-G?nter@24031 48
Hans-G?nter@24477 49 # Config file.
Hans-G?nter@24031 50 cp $stuff/dialogrc $fs/etc
Hans-G?nter@20826 51
Hans-G?nter@20826 52 # Localisations:
Hans-G?nter@24477 53 # Must these files remain in the base package
Hans-G?nter@24477 54 # or can they be split off in dialog-lang?
Hans-G?nter@24031 55 for lang in da de fr id it pt_BR ro ru
Hans-G?nter@24031 56 do
Hans-G?nter@20826 57 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
Hans-G?nter@20826 58 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/dialog.mo \
Hans-G?nter@20826 59 $fs/usr/share/locale/$lang/LC_MESSAGES/dialog.mo
Hans-G?nter@24031 60 done
pankso@35 61 }