wok-6.x view linapple/receipt @ rev 18428
shutdown: add simple shutdown wrapper script for other tool compatibility
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Mon Sep 21 13:17:35 2015 +0000 (2015-09-21) |
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 }