wok-current annotate freeciv/receipt @ rev 25324
updated squid, squid-auth-helpers and squid-langpack (3.4.2 -> 5.6)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 22 17:10:45 2022 +0100 (2022-07-22) |
parents | 640a2eba2511 |
children |
rev | line source |
---|---|
pascal@1730 | 1 # SliTaz package receipt. |
pascal@1730 | 2 |
pascal@1730 | 3 PACKAGE="freeciv" |
Hans-G?nter@22773 | 4 VERSION="2.6.1" |
pascal@1730 | 5 CATEGORY="games" |
Hans-G?nter@22773 | 6 TAGS="strategy" |
al@16885 | 7 SHORT_DESC="Empire-building strategy game" |
pascal@1730 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
Hans-G?nter@22773 | 10 WEB_SITE="http://www.freeciv.org/" |
Hans-G?nter@22773 | 11 |
pascal@1730 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@1730 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@1730 | 14 |
Hans-G?nter@22773 | 15 DEPENDS="bzip2 gettext-base gtk+3 libsdl-mixer ncurses readline |
Hans-G?nter@22773 | 16 xorg-libXdamage zlib" |
Hans-G?nter@22773 | 17 BUILD_DEPENDS="bzip2-dev curl-dev expat-dev gettext glibc-locale |
Hans-G?nter@22773 | 18 gtk+3-dev libsdl-mixer-dev ncurses-dev readline-dev zlib-dev" |
al@16885 | 19 |
pascal@24385 | 20 # What is the latest version available today? |
pascal@24385 | 21 current_version() |
pascal@24385 | 22 { |
pascal@24385 | 23 wget -O - https://sourceforge.net/projects/freeciv/files/ 2>/dev/null | \ |
pascal@24385 | 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24385 | 25 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24626 | 26 sed '/scope="row/!d;/tar/!d;/freeciv-[0-9]/!d;s|.*/freeciv-||;s|.tar.*||;q' |
pascal@24385 | 27 } |
pascal@24385 | 28 |
pascal@1730 | 29 # Rules to configure and make the package. |
pascal@1730 | 30 compile_rules() |
pascal@1730 | 31 { |
Hans-G?nter@22773 | 32 sed -i 's/--best/-9/' \ |
Hans-G?nter@22773 | 33 Makefile* \ |
Hans-G?nter@22773 | 34 data/scenarios/Makefile* |
al@16885 | 35 |
Hans-G?nter@22773 | 36 ./configure \ |
Hans-G?nter@22773 | 37 --enable-client=gtk \ |
Hans-G?nter@22773 | 38 --enable-shared \ |
slaxemulator@10067 | 39 $CONFIGURE_ARGS && |
slaxemulator@8721 | 40 make -j1 && |
slaxemulator@10067 | 41 make -j1 install |
pascal@1730 | 42 } |
pascal@1730 | 43 |
pascal@1730 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1730 | 45 genpkg_rules() |
pascal@1730 | 46 { |
Hans-G?nter@22773 | 47 mkdir -p $fs/usr/share |
Hans-G?nter@22773 | 48 mkdir -p $fs/usr/lib |
Hans-G?nter@22773 | 49 |
Hans-G?nter@22773 | 50 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22773 | 51 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22773 | 52 cp -a $install/usr/share/freeciv $fs/usr/share |
Hans-G?nter@22773 | 53 |
slaxemulator@10870 | 54 # Add icons for desktop files |
Hans-G?nter@22773 | 55 cp -a $install/usr/share/icons/hicolor/32x32/apps \ |
Hans-G?nter@22773 | 56 $fs/usr/share/pixmaps |
pascal@1730 | 57 } |