wok-6.x view linapple/receipt @ rev 19541

Up cookutils (843)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 05 04:55:00 2016 +0200 (2016-12-05)
parents 9af0717a63c0
children 6ffd94343946
line source
1 # SliTaz package receipt.
3 PACKAGE="linapple"
4 VERSION="2a"
5 CATEGORY="misc"
6 SHORT_DESC="Apple //e emulator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-src_$VERSION.tar.bz2"
10 WEB_SITE="http://linapple.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 CONFIG_FILES="/etc/linapple.conf"
13 TAGS="emulator apple2"
15 DEPENDS="gcc-lib-base libsdl zlib curl libzip"
16 BUILD_DEPENDS="libsdl-dev zlib-dev curl-dev libzip-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src/src
22 grep -q /usr/share/apple2 Applewin.cpp ||
23 sed -i 's|.*REGISTRY.*|\tchdir("/usr/share/apple2");\n&|' Applewin.cpp
24 make CXXFLAGS="-O3 -I/usr/lib/libzip/include -I/usr/include/SDL"
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share/apple2 $fs/usr/bin $fs/etc
31 cp $src/linapple $fs/usr/bin
32 cp $src/*.bmp $fs/usr/share/apple2
33 cp $src/linapple.conf $fs/etc
34 ln -s /etc/linapple.conf $fs/usr/share/apple2
35 }