wok-current view linapple/receipt @ rev 23296

updated perl-cgi-session (3.95 -> 4.48)
author Hans-G?nter Theisgen
date Sun Mar 29 16:25:36 2020 +0100 (2020-03-29)
parents daab4db430f4
children 65d7d867e0c1
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 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src/src
24 grep -q /usr/share/apple2 Applewin.cpp ||
25 sed -i 's|.*REGISTRY.*|\tchdir("/usr/share/apple2");\n&|' Applewin.cpp
26 make CXXFLAGS="-O3 -I/usr/lib/libzip/include -I/usr/include/SDL"
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share/apple2
33 mkdir -p $fs/usr/bin
34 mkdir -p $fs/etc
36 cp $src/linapple $fs/usr/bin
37 cp $src/*.bmp $fs/usr/share/apple2
38 cp $src/linapple.conf $fs/etc
40 ln -s /etc/linapple.conf $fs/usr/share/apple2
41 }