wok annotate dialog/receipt @ rev 24336
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 28 18:19:21 2022 +0000 (2022-01-28) |
parents | b4b3cde755b0 |
children | fb22330086d8 |
rev | line source |
---|---|
pankso@35 | 1 # SliTaz package receipt. |
pankso@35 | 2 |
pankso@35 | 3 PACKAGE="dialog" |
Hans-G?nter@24031 | 4 VERSION="1.3_20210324" |
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@24069 | 22 sed '/gz"/!d;s|.*dialog-||;s|.tgz.*||' | 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@20826 | 37 make DESTDIR=$DESTDIR install |
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@24031 | 48 # Configuration 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@24031 | 52 for lang in da de fr id it pt_BR ro ru |
Hans-G?nter@24031 | 53 do |
Hans-G?nter@20826 | 54 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
Hans-G?nter@20826 | 55 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/dialog.mo \ |
Hans-G?nter@20826 | 56 $fs/usr/share/locale/$lang/LC_MESSAGES/dialog.mo |
Hans-G?nter@24031 | 57 done |
pankso@35 | 58 } |