wok annotate cgames/receipt @ rev 24686
updated jbig2dec and jbig2dec-dev (0.18 -> 0.19)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 12 11:26:36 2022 +0100 (2022-03-12) |
parents | 4bc80d930fe0 |
children |
rev | line source |
---|---|
pascal@9483 | 1 # SliTaz package receipt. |
pascal@9483 | 2 |
pascal@9483 | 3 PACKAGE="cgames" |
Hans-G?nter@24400 | 4 VERSION="2.2b" |
pascal@9483 | 5 CATEGORY="games" |
pascal@9483 | 6 SHORT_DESC="Games for the Linux Console." |
pascal@9483 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
Hans-G?nter@24400 | 9 WEB_SITE="https://www.muppetlabs.com/~breadbox/software/cgames.html" |
Hans-G?nter@22588 | 10 |
pascal@9483 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24400 | 12 WGET_URL="https://www.muppetlabs.com/~breadbox/pub/software/$TARBALL" |
al@14793 | 13 |
pascal@9483 | 14 DEPENDS="ncurses" |
pascal@9483 | 15 BUILD_DEPENDS="ncurses-dev" |
pascal@9483 | 16 |
pascal@24402 | 17 # What is the latest version available today? |
pascal@24402 | 18 current_version() |
pascal@24402 | 19 { |
pascal@24402 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24402 | 21 sed '/cgames-/!d;s|.*cgames-||;s|.tar.*||' | sort -Vr | sed q |
pascal@24402 | 22 } |
pascal@24402 | 23 |
pascal@9483 | 24 # Rules to configure and make the package. |
pascal@9483 | 25 compile_rules() |
pascal@9483 | 26 { |
pascal@17670 | 27 export LDFLAGS="$LDFLAGS -ltinfo" |
Hans-G?nter@22588 | 28 |
Hans-G?nter@22588 | 29 sed -i -e 's|install -.*\$|&(destdir)/$|' \ |
Hans-G?nter@22588 | 30 -e "s|^prefix|destdir = $DESTDIR\\n&|" \ |
Hans-G?nter@22588 | 31 -e 's/g games/g root/' \ |
Hans-G?nter@22588 | 32 */Makefile.in |
Hans-G?nter@22588 | 33 sed -i 's/.* getline(.*/#define getline mygetline\n&/' \ |
Hans-G?nter@22588 | 34 */fileread.h |
Hans-G?nter@22588 | 35 |
Hans-G?nter@22588 | 36 ./configure \ |
Hans-G?nter@22588 | 37 --prefix=/usr \ |
Hans-G?nter@22588 | 38 --mandir=/usr/share/man \ |
Hans-G?nter@22588 | 39 --datadir=/usr/share \ |
Hans-G?nter@22588 | 40 --disable-mouse \ |
Hans-G?nter@22588 | 41 --with-ncurses \ |
Hans-G?nter@22588 | 42 $CONFIGURE_ARGS && |
pascal@9483 | 43 make && |
pascal@9483 | 44 make install |
pascal@9483 | 45 } |
pascal@9483 | 46 |
pascal@9483 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@9483 | 48 genpkg_rules() |
pascal@9483 | 49 { |
pascal@9483 | 50 mkdir -p $fs/usr/share |
Hans-G?nter@22588 | 51 |
Hans-G?nter@22588 | 52 cp -a $install/usr/games $fs/usr |
Hans-G?nter@22588 | 53 cp -a $install/usr/share/cblocks $fs/usr/share |
Hans-G?nter@22588 | 54 cp -a $install/usr/share/csokoban $fs/usr/share |
al@14793 | 55 |
al@14793 | 56 find $fs -type f -name '*.txt' -exec chmod a-x \{\} \; |
pascal@9483 | 57 } |