wok-6.x annotate gperiodic/receipt @ rev 24529

updated exiv2 and exiv2-dev again (0.27.3 -> 0.27.5)
author Hans-G?nter Theisgen
date Wed Feb 23 07:34:39 2022 +0100 (2022-02-23)
parents f4097dc1ae1c
children ad0bc3efbf37
rev   line source
erjo@511 1 # SliTaz package receipt.
erjo@511 2
erjo@511 3 PACKAGE="gperiodic"
Hans-G?nter@20991 4 VERSION="3.0.3"
pascal@745 5 CATEGORY="misc"
Hans-G?nter@20991 6 SHORT_DESC="A periodic table element."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15600 8 LICENSE="GPL2"
Hans-G?nter@20991 9 WEB_SITE="https://sourceforge.net/projects/gperiodic/"
Hans-G?nter@20991 10
erjo@511 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20991 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
erjo@511 13
pascal@15600 14 DEPENDS="gtk+ xorg-libXdamage"
pascal@15600 15 BUILD_DEPENDS="gtk+-dev"
pascal@15600 16
pascal@24403 17 # What is the latest version available today?
pascal@24403 18 current_version()
pascal@24403 19 {
pascal@24403 20 wget -O - https://sourceforge.net/projects/gperiodic/files/ 2>/dev/null | \
pascal@24403 21 sed '/scope="row/!d;s|.*/gperiodic-||;s|.tar.*||;q'
pascal@24403 22 }
pascal@24403 23
erjo@511 24 # Rules to configure and make the package.
erjo@511 25 compile_rules()
erjo@511 26 {
pascal@1530 27 sed -i 's| GtkTooltips| struct _GtkTooltips|' gperiodic.h
erjo@511 28 make
erjo@511 29 }
erjo@511 30
erjo@511 31 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@511 32 genpkg_rules()
erjo@511 33 {
Hans-G?nter@20991 34 mkdir -p $fs/usr/bin \
Hans-G?nter@20991 35 $fs/usr/share/applications \
Hans-G?nter@20991 36 $fs/usr/share/pixmaps \
Hans-G?nter@20991 37 $fs/usr/share/locale
erjo@511 38
Hans-G?nter@20991 39 cp -a $src/gperiodic $fs/usr/bin
Hans-G?nter@20991 40 cp -a $src/gperiodic.desktop $fs/usr/share/applications
Hans-G?nter@20991 41 cp -a $src/icons/gperiodic.png $fs/usr/share/pixmaps
Hans-G?nter@20991 42
Hans-G?nter@20991 43 # locales
Hans-G?nter@20991 44 LOCALE="ca da de es fr id it pl pt_BR ru sv uk zh_CN"
Hans-G?nter@20991 45 for locale in $LOCALE
Hans-G?nter@20991 46 do
Hans-G?nter@20991 47 if [ -e $src/po/$locale.mo ]
Hans-G?nter@20991 48 then
Hans-G?nter@20991 49 mkdir -p $fs/usr/share/locale/$locale/LC_MESSAGES
Hans-G?nter@20991 50 cp -a $src/po/$locale.mo \
Hans-G?nter@20991 51 $fs/usr/share/locale/$locale/LC_MESSAGES/gperiodic.mo
Hans-G?nter@20991 52 fi
Hans-G?nter@20991 53 done
erjo@511 54 }
erjo@511 55
Hans-G?nter@20991 56
Hans-G?nter@20991 57
Hans-G?nter@20991 58
Hans-G?nter@20991 59
Hans-G?nter@20991 60
Hans-G?nter@20991 61
Hans-G?nter@20991 62
Hans-G?nter@20991 63 :