Commit bd7bd970 authored by Sergio Costas's avatar Sergio Costas

Allows to build without installing ROMs

Added deb and rpm files
parent 165d2076
Source: fbzx
Maintainer: Sergio Costas Rodriguez <raster@rastersoft.com>
Section: games
Priority: optional
Build-Depends: build-essential, make, libpulse-dev, libasound2-dev, libsdl1.2-dev
Package: fbzx
Version: 3.0.0
Architecture: any
Depends: libpulse0,libasound2,libsdl1.2debian,spectrum-roms (>=20081224-1)
Homepage: http://www.rastersoft.com/fbzx.html
Description: Sinclair Spectrum emulator
FBZX is a Sinclair ZX Spectrum emulator for Linux/Unix. It
can work over X-Windows or in a FrameBuffer console.
ifdef PREFIX
PREFIX2=$(PREFIX)/usr
PREFIX2B=$(PREFIX)
else
PREFIX2=/usr/local
PREFIX2B=/usr/local
endif
ifdef DESTDIR
PREFIX2=$(DESTDIR)/$(PREFIX2B)
else
PREFIX2=$(PREFIX2B)
endif
all:
cd src && $(MAKE)
......@@ -12,22 +19,25 @@ clean:
install:
rm -f $(PREFIX2)/bin/fbzx
cp src/fbzx $(PREFIX2)/bin
mkdir -p $(PREFIX2)/bin
mkdir -p $(PREFIX2)/share/fbzx
mkdir -p $(PREFIX2)/share/spectrum-roms
mkdir -p $(PREFIX2)/share/applications
mkdir -p $(PREFIX2)/share/pixmaps
mkdir -p $(PREFIX2)/share/doc/fbzx
mkdir -p $(PREFIX2)/share/appdata
cp data/spectrum-roms/* $(PREFIX2)/share/spectrum-roms
cp src/fbzx $(PREFIX2)/bin
cp data/keymap.bmp $(PREFIX2)/share/fbzx
cp data/fbzx.desktop $(PREFIX2)/share/applications
cp data/fbzx.svg $(PREFIX2)/share/pixmaps
cp AMSTRAD CAPABILITIES COPYING FAQ README README.TZX VERSIONS $(PREFIX2)/share/doc/fbzx/
cp fbzx.appdata.xml $(PREFIX2)/share/appdata/
chmod 644 $(PREFIX2)/share/fbzx/*
chmod 644 $(PREFIX2)/share/spectrum-roms/*
chmod 644 $(PREFIX2)/share/doc/fbzx/*
ifndef NOROMS
mkdir -p $(PREFIX2)/share/spectrum-roms
cp data/spectrum-roms/* $(PREFIX2)/share/spectrum-roms
chmod 644 $(PREFIX2)/share/spectrum-roms/*
endif
uninstall:
rm -f $(PREFIX2)/bin/fbzx
......
Name: fbzx
Version: 3.0
Release: 1
License: GPL3
Summary: A Sinclair ZX Spectrum emulator
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: glibc-headers
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: make
BuildRequires: SDL-devel
BuildRequires: pulseaudio-libs-devel
Requires: SDL
Requires: pulseaudio-libs
Requires: spectrum-roms
%description
A Sinclair ZX Spectrum emulator
.
%post
%clean
rm -rf %{buildroot}
%build
mkdir -p ${RPM_BUILD_DIR}
cd ${RPM_BUILD_DIR}; cmake -DCMAKE_INSTALL_PREFIX=/usr
make -C ${RPM_BUILD_DIR}
%postun
%files
/*
%install
make install -C ${RPM_BUILD_DIR} DESTDIR=%{buildroot}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment