wok-next diff linapple/receipt @ rev 21034
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 05 01:38:46 2018 +0200 (2018-11-05) |
parents | 27bfe81dc6bd |
children | 0f2575775b2d |
line diff
1.1 --- a/linapple/receipt Thu Nov 16 16:28:30 2017 +0100 1.2 +++ b/linapple/receipt Mon Nov 05 01:38:46 2018 +0200 1.3 @@ -1,38 +1,41 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="linapple" 1.8 VERSION="2a" 1.9 CATEGORY="misc" 1.10 -SHORT_DESC="Apple //e emulator." 1.11 +SHORT_DESC="Apple //e emulator" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://linapple.sourceforge.net/" 1.15 + 1.16 TARBALL="$PACKAGE-src_$VERSION.tar.bz2" 1.17 -WEB_SITE="http://linapple.sourceforge.net/" 1.18 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.19 -CONFIG_FILES="/etc/linapple.conf" 1.20 -TAGS="emulator apple2" 1.21 1.22 -DEPENDS="gcc-lib-base libsdl zlib curl libzip" 1.23 BUILD_DEPENDS="libsdl-dev zlib-dev curl-dev libzip-dev" 1.24 1.25 -# Rules to configure and make the package. 1.26 -compile_rules() 1.27 -{ 1.28 +compile_rules() { 1.29 cd $src/src 1.30 sed -i 's|sys/stat.h>|&\n#include <unistd.h>|' Frame.cpp 1.31 sed -i 's|fcntl.h>|&\n#include <unistd.h>|' SerialComms.cpp 1.32 sed -i 's|sys/time.h>|&\n#include <unistd.h>|' Timer.cpp Applewin.cpp 1.33 grep -q /usr/share/apple2 Applewin.cpp || 1.34 sed -i 's|.*REGISTRY.*|\tchdir("/usr/share/apple2");\n&|' Applewin.cpp 1.35 - make CXXFLAGS="-O3 -I/usr/lib/libzip/include -I/usr/include/SDL" 1.36 + 1.37 + make CXXFLAGS="-O3 -I/usr/lib/libzip/include -I/usr/include/SDL" || return 1 1.38 + 1.39 + mkdir -p \ 1.40 + $install/usr/share/apple2 \ 1.41 + $install/usr/bin \ 1.42 + $install/etc 1.43 + cp $src/linapple $install/usr/bin 1.44 + cp $src/*.bmp $install/usr/share/apple2 1.45 + cp $src/linapple.conf $install/etc 1.46 + ln -s /etc/linapple.conf $install/usr/share/apple2 1.47 } 1.48 1.49 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.50 -genpkg_rules() 1.51 -{ 1.52 - mkdir -p $fs/usr/share/apple2 $fs/usr/bin $fs/etc 1.53 - cp $src/linapple $fs/usr/bin 1.54 - cp $src/*.bmp $fs/usr/share/apple2 1.55 - cp $src/linapple.conf $fs/etc 1.56 - ln -s /etc/linapple.conf $fs/usr/share/apple2 1.57 +genpkg_rules() { 1.58 + copy @std 1.59 + DEPENDS="gcc-lib-base libsdl zlib curl libzip" 1.60 + CONFIG_FILES="/etc/linapple.conf" 1.61 + TAGS="emulator apple2" 1.62 }