diff --git a/srcpkgs/sopwith/files/sopwith.desktop b/srcpkgs/sopwith/files/sopwith.desktop new file mode 100644 index 00000000000..c0b141ec5f8 --- /dev/null +++ b/srcpkgs/sopwith/files/sopwith.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +GenericName=Sopwith +Comment=WW1 Dogfighting Game +Exec=/usr/bin/sopwith +StartupNotify=false +Terminal=false +Categories=Application;Game; +Icon=/usr/share/pixmaps/sopwith.png diff --git a/srcpkgs/sopwith/files/sopwith.png b/srcpkgs/sopwith/files/sopwith.png new file mode 100644 index 00000000000..436b8e42b65 Binary files /dev/null and b/srcpkgs/sopwith/files/sopwith.png differ diff --git a/srcpkgs/sopwith/patches/enable_cross_compilation.patch b/srcpkgs/sopwith/patches/enable_cross_compilation.patch new file mode 100644 index 00000000000..5e4c0d2aa10 --- /dev/null +++ b/srcpkgs/sopwith/patches/enable_cross_compilation.patch @@ -0,0 +1,37 @@ +--- configure.in.orig ++++ configure.in +@@ -1,4 +1,4 @@ +-AC_INIT(src/swmain.c) ++AC_INIT([sopwith], [1.8.4]) + AC_CONFIG_AUX_DIR(autotools) + + VERSION=1.8.4 +@@ -46,7 +46,8 @@ + ;; + esac + +-AM_INIT_AUTOMAKE(sopwith,$VERSION) ++AM_INIT_AUTOMAKE([-Wall foreign]) ++AM_PROG_AR + + AM_CONFIG_HEADER(config.h:config.hin) + +--- src/Makefile.am.orig ++++ src/Makefile.am +@@ -6,7 +6,7 @@ + bin_PROGRAMS = @SOPWITH_BINS@ + EXTRA_PROGRAMS = sopwith gtksopwith psopwith + +-CFLAGS = @CFLAGS@ -I.. ++AM_CFLAGS = @CFLAGS@ @SDL_CFLAGS@ -I.. + + COMMON_SRC = \ + video.h swcollsn.c swgames.h swmain.h swutil.h \ +--- src/sdl/Makefile.am.orig ++++ src/sdl/Makefile.am +@@ -1,4 +1,4 @@ +-CFLAGS=@CFLAGS@ @SDL_CFLAGS@ -I.. ++AM_CFLAGS=@CFLAGS@ @SDL_CFLAGS@ -I.. + + noinst_LIBRARIES = libsdlsopwith.a + diff --git a/srcpkgs/sopwith/template b/srcpkgs/sopwith/template new file mode 100644 index 00000000000..32f6cad630a --- /dev/null +++ b/srcpkgs/sopwith/template @@ -0,0 +1,23 @@ +# Template file for 'sopwith' +pkgname=sopwith +version=1.8.4 +revision=1 +build_style=gnu-configure +makedepends="SDL-devel" +hostmakedepends="automake ${makedepends}" +short_desc="Sidescrolling shoot 'em up game" +maintainer="beefcurtains " +license="GPL-2" +homepage="http://sdl-sopwith.sourceforge.net/" +distfiles="${SOURCEFORGE_SITE}/sdl-sopwith/sdl_sopwith/${version}/${pkgname}-${version}.tar.gz" +checksum=a5ecb795a7aeff6be3ebfb99f1c6218054b73048786809f8468a92c952c17bd0 + +pre_configure() { + mv configure.{in,ac} + autoreconf -fi +} + +post_install() { + vinstall ${FILESDIR}/${pkgname}.png 644 usr/share/pixmaps + vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications +}