wok annotate puzzles/receipt @ rev 24981
Up pce (20220220-991c55d9)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 10:57:53 2022 +0000 (2022-05-08) |
parents | 443413958528 |
children | bfaaab0fd7b3 |
rev | line source |
---|---|
erjo@6070 | 1 # SliTaz package receipt. |
erjo@6070 | 2 |
erjo@6070 | 3 PACKAGE="puzzles" |
Hans-G?nter@21732 | 4 VERSION="20190415" |
erjo@6070 | 5 CATEGORY="games" |
erjo@6070 | 6 SHORT_DESC="Misc puzzles games." |
erjo@6070 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15376 | 8 LICENSE="MIT" |
pascal@20669 | 9 WEB_SITE="https://www.chiark.greenend.org.uk/~sgtatham/puzzles/" |
Hans-G?nter@21731 | 10 |
Hans-G?nter@21731 | 11 TARBALL="$PACKAGE-$VERSION.e2135d5.tar.gz" |
erjo@6070 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@15136 | 13 |
Hans-G?nter@21731 | 14 DEPENDS="cairo gtk+ libxcb xorg-libXrandr" |
Hans-G?nter@21731 | 15 BUILD_DEPENDS="file gtk+-dev" |
erjo@6070 | 16 |
pascal@24535 | 17 # What is the latest version available today? |
pascal@24535 | 18 current_version() |
pascal@24535 | 19 { |
pascal@24535 | 20 wget -O - 'https://git.tartarus.org/?p=simon/puzzles.git' 2>/dev/null | \ |
pascal@24535 | 21 sed '/<i>[0-9-]*<.i>/!d;s|.*<i>||;s|<.*||;s|-||g;q' |
pascal@24535 | 22 } |
pascal@24535 | 23 |
erjo@6070 | 24 # Rules to configure and make the package. |
erjo@6070 | 25 compile_rules() |
erjo@6070 | 26 { |
pascal@15136 | 27 mkdir -p $DESTDIR/usr/local/games 2> /dev/null |
Hans-G?nter@21731 | 28 ./configure \ |
Hans-G?nter@21731 | 29 --prefix=/usr \ |
pascal@20586 | 30 $CONFIGURE_ARGS && |
erjo@6070 | 31 make && |
pascal@15136 | 32 make DESTDIR=$DESTDIR install |
erjo@6070 | 33 } |
erjo@6070 | 34 |
erjo@6070 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@6070 | 36 genpkg_rules() |
erjo@6070 | 37 { |
Hans-G?nter@21731 | 38 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@21731 | 39 mkdir -p $fs/usr/share/applications |
Hans-G?nter@21731 | 40 |
Hans-G?nter@21731 | 41 cp -a $install/usr/* $fs/ |
erjo@6070 | 42 |
erjo@6070 | 43 for img in $(ls $src/icons/*16d24*) |
erjo@6070 | 44 do |
erjo@6070 | 45 cp $img $fs/usr/share/pixmaps/$(basename $img -16d24.png).png |
erjo@6070 | 46 done |
erjo@6070 | 47 |
Hans-G?nter@21731 | 48 cp -a $stuff/*.desktop $fs/usr/share/applications |
erjo@6070 | 49 } |