wok-current annotate dialog/receipt @ rev 24477
updated dialog and dialog-dev (1.3_20210324 -> 1.3_20220117)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 18 10:50:23 2022 +0100 (2022-02-18) |
parents | fb22330086d8 |
children | bc2b9d9bed6f |
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@24069 | 19 current_version() |
pascal@24069 | 20 { |
pascal@24069 | 21 wget -O - ftp://ftp.invisible-island.net/dialog/ 2>/dev/null | \ |
pascal@24384 | 22 sed '/gz"/!d;s|.*dialog-||;s|.tgz.*||;s|-|_|' | sed '$!d' |
pascal@24069 | 23 } |
pascal@24069 | 24 |
pankso@35 | 25 # Rules to configure and make the package. |
pankso@35 | 26 compile_rules() |
pankso@35 | 27 { |
Hans-G?nter@24031 | 28 ./configure \ |
Hans-G?nter@24031 | 29 --prefix=/usr \ |
Hans-G?nter@24031 | 30 --sysconfdir=/etc \ |
Hans-G?nter@24031 | 31 --mandir=/usr/share/man \ |
Hans-G?nter@24031 | 32 --with-ncursesw \ |
Hans-G?nter@24031 | 33 --enable-nls \ |
Hans-G?nter@24031 | 34 --enable-widec \ |
pankso@4895 | 35 $CONFIGURE_ARGS && |
Hans-G?nter@20826 | 36 make && |
Hans-G?nter@24477 | 37 make install DESTDIR=$DESTDIR |
pankso@35 | 38 } |
pankso@35 | 39 |
pankso@35 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@35 | 41 genpkg_rules() |
pankso@35 | 42 { |
Hans-G?nter@24031 | 43 mkdir -p $fs/usr |
Hans-G?nter@24031 | 44 mkdir -p $fs/etc |
Hans-G?nter@20826 | 45 |
Hans-G?nter@24031 | 46 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24031 | 47 |
Hans-G?nter@24477 | 48 # Config file. |
Hans-G?nter@24031 | 49 cp $stuff/dialogrc $fs/etc |
Hans-G?nter@20826 | 50 |
Hans-G?nter@20826 | 51 # Localisations: |
Hans-G?nter@24477 | 52 # Must these files remain in the base package |
Hans-G?nter@24477 | 53 # or can they be split off in dialog-lang? |
Hans-G?nter@24031 | 54 for lang in da de fr id it pt_BR ro ru |
Hans-G?nter@24031 | 55 do |
Hans-G?nter@20826 | 56 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
Hans-G?nter@20826 | 57 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/dialog.mo \ |
Hans-G?nter@20826 | 58 $fs/usr/share/locale/$lang/LC_MESSAGES/dialog.mo |
Hans-G?nter@24031 | 59 done |
pankso@35 | 60 } |