wok annotate sudoku-savant/receipt @ rev 25510

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 12 20:36:56 2023 +0000 (21 months ago)
parents ad0bc3efbf37
children 29df00e1e19d
rev   line source
pankso@707 1 # SliTaz package receipt.
pankso@707 2
pankso@707 3 PACKAGE="sudoku-savant"
pankso@5621 4 VERSION="1.3"
pankso@707 5 CATEGORY="games"
pankso@707 6 SHORT_DESC="Sudoku games/generator using GTK."
pascal@15581 7 MAINTAINER="pankso@slitaz.org"
pascal@15581 8 LICENSE="GPL3"
pascal@15581 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@25510 10 WEB_SITE="https://sourceforge.net/projects/sudoku-savant/"
pascal@15581 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@15581 12
pankso@5621 13 DEPENDS="expat gtk+ xorg-libX11 xorg-libXau xorg-libXcomposite \
pankso@5621 14 xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXrandr \
pankso@5621 15 xorg-libXrender xorg-libXinerama xorg-libXdamage gcc-lib-base"
pascal@15615 16 BUILD_DEPENDS="gtk+-dev libpthread-stubs desktop-file-utils-extra \
pascal@15615 17 coreutils-operations"
pankso@707 18
pascal@24348 19 # What is the latest version available today?
pascal@24348 20 current_version()
pascal@24348 21 {
pascal@24348 22 wget -O - https://sourceforge.net/projects/sudoku-savant/files/sudoku-savant/ 2>/dev/null | \
pascal@24348 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24348 24 sed '/scope="row/!d;s|.*savant-||;s|.tar.*||;q'
pascal@24348 25 }
pascal@24348 26
pankso@707 27 # Rules to configure and make the package.
pankso@707 28 compile_rules()
pankso@707 29 {
pankso@707 30 cd $src
pankso@707 31 ./configure \
pankso@707 32 --prefix=/usr \
pankso@5621 33 --bindir=/usr/games \
pascal@2440 34 --mandir=/usr/share/man \
pascal@2440 35 $CONFIGURE_ARGS &&
pascal@2440 36 make &&
pascal@15581 37 make DESTDIR=$DESTDIR install
pankso@5621 38 # desktop-file-install workaround
pascal@15603 39 [ -x $DESTDIR/usr/games/sudoku-savant ] && \
pankso@5621 40 echo "Continue: desktop-file-install dont support busybox install..."
pankso@707 41 }
pankso@707 42
pankso@707 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@707 44 genpkg_rules()
pankso@707 45 {
pankso@5621 46 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications
pascal@15581 47 cp -a $install/usr/games $fs/usr
pankso@5621 48 cp $src/$PACKAGE.png $fs/usr/share/pixmaps
pankso@5621 49 cp $src/$PACKAGE.desktop $fs/usr/share/applications
pankso@707 50 }