wok view gperiodic/receipt @ rev 25794

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