wok annotate enigma/receipt @ rev 24944
updated n2n (2.4 -> 3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 22 16:44:33 2022 +0100 (2022-04-22) |
parents | 81e5fba70e83 |
children |
rev | line source |
---|---|
devl547@5225 | 1 # SliTaz package receipt. |
devl547@5225 | 2 |
devl547@5225 | 3 PACKAGE="enigma" |
Hans-G?nter@22702 | 4 VERSION="1.21" |
devl547@5225 | 5 CATEGORY="games" |
Hans-G?nter@22175 | 6 SHORT_DESC="Puzzle game similar to Oxyd." |
devl547@5225 | 7 MAINTAINER="devl547@gmail.com" |
pascal@15588 | 8 LICENSE="GPL2" |
Hans-G?nter@22175 | 9 WEB_SITE="https://www.nongnu.org/enigma/" |
Hans-G?nter@22175 | 10 |
Hans-G?nter@22702 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22702 | 12 WGET_URL="$SF_MIRROR/$PACKAGE-game/$TARBALL" |
slaxemulator@10873 | 13 |
Hans-G?nter@22175 | 14 DEPENDS="libsdl libsdl-image libsdl-mixer libsdl-ttf xerces-c" |
Hans-G?nter@22702 | 15 BUILD_DEPENDS="curl-dev gettext imagemagick libsdl-dev libsdl-image-dev |
Hans-G?nter@22702 | 16 libsdl-mixer-dev libsdl-ttf-dev xerces-c-dev" |
Hans-G?nter@22702 | 17 # imagemagick for /usr/bin/convert only |
devl547@5225 | 18 |
pascal@24385 | 19 # What is the latest version available today? |
pascal@24385 | 20 current_version() |
pascal@24385 | 21 { |
pascal@24385 | 22 wget -O - https://sourceforge.net/projects/enigma-game/files/ 2>/dev/null | \ |
pascal@24385 | 23 sed '/scope="row/!d;s|.*elease%20||;s|/.*||;q' |
pascal@24385 | 24 } |
pascal@24385 | 25 |
devl547@5225 | 26 # Rules to configure and make the package. |
devl547@5225 | 27 compile_rules() |
devl547@5225 | 28 { |
Hans-G?nter@22702 | 29 # sed -i 's/stdexcept>/&\n#include <stddef.h>/' \ |
Hans-G?nter@22702 | 30 # lib-src/zipios++/src/directory.h |
Hans-G?nter@22702 | 31 # sed -i 's/#ifndef.*/&\n#include <stddef.h>/' \ |
Hans-G?nter@22702 | 32 # lib-src/enigma-core/ecl_dict.hh |
Hans-G?nter@22702 | 33 |
Hans-G?nter@22175 | 34 ./configure \ |
Hans-G?nter@22175 | 35 --build=$HOST_SYSTEM \ |
Hans-G?nter@22175 | 36 --host=$HOST_SYSTEM \ |
Hans-G?nter@22175 | 37 --enable-optimize 2>&1 | sed '/.*config.rpath.*No such file.*/d' && |
devl547@5225 | 38 make && |
slaxemulator@10873 | 39 make DESTDIR=$DESTDIR install |
devl547@5225 | 40 } |
devl547@5225 | 41 |
devl547@5225 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@5225 | 43 genpkg_rules() |
devl547@5225 | 44 { |
slaxemulator@10873 | 45 mkdir -p $fs/usr/share |
Hans-G?nter@22175 | 46 |
Hans-G?nter@22175 | 47 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22175 | 48 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@22175 | 49 cp -a $install/usr/share/enigma $fs/usr/share |
devl547@5225 | 50 } |