wok annotate linapple/receipt @ rev 24776

jack1: added build dependency gcc83
author Hans-G?nter Theisgen
date Sat Mar 19 17:48:51 2022 +0100 (2022-03-19)
parents 2881d876fae4
children 7dd01dedad38
rev   line source
slaxemulator@7575 1 # SliTaz package receipt.
slaxemulator@7575 2
slaxemulator@7575 3 PACKAGE="linapple"
Hans-G?nter@21359 4 VERSION="2b"
slaxemulator@7575 5 CATEGORY="misc"
Hans-G?nter@21359 6 TAGS="emulator apple2"
slaxemulator@7575 7 SHORT_DESC="Apple //e emulator."
slaxemulator@7575 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15201 9 LICENSE="GPL2"
Hans-G?nter@21359 10 WEB_SITE="http://linapple.sourceforge.net/"
Hans-G?nter@21359 11
Hans-G?nter@21361 12 TARBALL="${PACKAGE}_src-$VERSION.tar.bz2"
Hans-G?nter@21359 13 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@21360 14 WGET_URL="https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE/${PACKAGE}_$VERSION/$TARBALL"
Hans-G?nter@21359 15
Hans-G?nter@21359 16 DEPENDS="curl gcc-lib-base libsdl libzip zlib"
Hans-G?nter@21359 17 BUILD_DEPENDS="curl-dev libsdl-dev libzip-dev zlib-dev"
slaxemulator@7575 18 CONFIG_FILES="/etc/linapple.conf"
pascal@15201 19
pascal@24411 20 # What is the latest version available today?
pascal@24411 21 current_version()
pascal@24411 22 {
pascal@24411 23 wget -O - https://sourceforge.net/projects/linapple/files/linapple/ 2>/dev/null | \
pascal@24411 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 25 sed '/scope="row/!d;s|.*/linapple_src-||;s|.tar.*||;q'
pascal@24411 26 }
pascal@24411 27
slaxemulator@7575 28 # Rules to configure and make the package.
slaxemulator@7575 29 compile_rules()
slaxemulator@7575 30 {
slaxemulator@7575 31 cd $src/src
slaxemulator@7575 32 grep -q /usr/share/apple2 Applewin.cpp ||
slaxemulator@7575 33 sed -i 's|.*REGISTRY.*|\tchdir("/usr/share/apple2");\n&|' Applewin.cpp
pascal@12807 34 make CXXFLAGS="-O3 -I/usr/lib/libzip/include -I/usr/include/SDL"
slaxemulator@7575 35 }
slaxemulator@7575 36
slaxemulator@7575 37 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7575 38 genpkg_rules()
slaxemulator@7575 39 {
Hans-G?nter@21359 40 mkdir -p $fs/usr/share/apple2
Hans-G?nter@21359 41 mkdir -p $fs/usr/bin
Hans-G?nter@21359 42 mkdir -p $fs/etc
Hans-G?nter@21359 43
Hans-G?nter@21359 44 cp $src/linapple $fs/usr/bin
Hans-G?nter@21359 45 cp $src/*.bmp $fs/usr/share/apple2
Hans-G?nter@21359 46 cp $src/linapple.conf $fs/etc
Hans-G?nter@21359 47
slaxemulator@7575 48 ln -s /etc/linapple.conf $fs/usr/share/apple2
slaxemulator@7575 49 }