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