wok-6.x view puzzles/receipt @ rev 24883

created recipes for loudmouth and loudmouth-dev
author Hans-G?nter Theisgen
date Fri Apr 01 07:38:03 2022 +0100 (2022-04-01)
parents 443413958528
children bfaaab0fd7b3
line source
1 # SliTaz package receipt.
3 PACKAGE="puzzles"
4 VERSION="20190415"
5 CATEGORY="games"
6 SHORT_DESC="Misc puzzles games."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
11 TARBALL="$PACKAGE-$VERSION.e2135d5.tar.gz"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 DEPENDS="cairo gtk+ libxcb xorg-libXrandr"
15 BUILD_DEPENDS="file gtk+-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - 'https://git.tartarus.org/?p=simon/puzzles.git' 2>/dev/null | \
21 sed '/<i>[0-9-]*<.i>/!d;s|.*<i>||;s|<.*||;s|-||g;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir -p $DESTDIR/usr/local/games 2> /dev/null
28 ./configure \
29 --prefix=/usr \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/pixmaps
39 mkdir -p $fs/usr/share/applications
41 cp -a $install/usr/* $fs/
43 for img in $(ls $src/icons/*16d24*)
44 do
45 cp $img $fs/usr/share/pixmaps/$(basename $img -16d24.png).png
46 done
48 cp -a $stuff/*.desktop $fs/usr/share/applications
49 }