From 1e398330bbb60c33289691ab49fbc5cc58d100b7 Mon Sep 17 00:00:00 2001 From: beefcurtains Date: Thu, 21 May 2015 03:26:46 +0000 Subject: [PATCH 1/3] New package: sopwith-1.8.4 --- srcpkgs/sopwith/files/sopwith.desktop | 10 +++++ srcpkgs/sopwith/files/sopwith.png | Bin 0 -> 890 bytes .../patches/enable_cross_compilation.patch | 37 ++++++++++++++++++ srcpkgs/sopwith/template | 24 ++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 srcpkgs/sopwith/files/sopwith.desktop create mode 100644 srcpkgs/sopwith/files/sopwith.png create mode 100644 srcpkgs/sopwith/patches/enable_cross_compilation.patch create mode 100644 srcpkgs/sopwith/template diff --git a/srcpkgs/sopwith/files/sopwith.desktop b/srcpkgs/sopwith/files/sopwith.desktop new file mode 100644 index 0000000000..c0b141ec5f --- /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 0000000000000000000000000000000000000000..436b8e42b6557e462a3ccad1cb62aec224ae8f4a GIT binary patch literal 890 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-sO9OmDT!Hl91^>Z-;eYd+kt?`d`>7t!Vk5bUJw7Qaq92M}HEPNdBFs*;Mmx=}f5m^KsqlW6=rezq#J0P3$FoB76?9WEh?~k-7Kw z+k5Zc*lqti_3J&aDKoepT@NYmTl)Ii?~bMOubDr5pdxvsgY%KpXBAHC{>x{D-S5Bu zZ8x)eDpM`52UAfu_xBYp8#d%0SmBkv>)!XukQs)2%h(Q!O9Z;>beBwQWM1o<@SsNX z!J@3R&C9e3xEY+@#v0_!SQdMs(5LNTa;S9M32!0&E@qYh10F+uuXUd~USD(VX+PN4 zcl<<%pwlXQ9=+Dkr8nmuZnU>ZjksE77_jF=z)f2n*|;e>u}2okctp8QU_HO={bp;+ z2$8VovMw^qeQZ@%Ej)WDZ`!mz<7-Ru{<+LBo9!!H^>eNFj0?e1pBAyqx47;#EssO< z^14%dx2U8{PV=hW7rNA8E=SXAPU+IALfdLCZ%BRVwzaX+VbVd_nTPr`J|xOr+WFHi zk?$|V$A%L3KNZ~O+~!-jZ??>gwyCQ=@3#8b1TA0Z#|B~19}fMWsd-$v_p|*|?XG-@ oe-ibcjmdKI;Vst0GIn)Y5)KL literal 0 HcmV?d00001 diff --git a/srcpkgs/sopwith/patches/enable_cross_compilation.patch b/srcpkgs/sopwith/patches/enable_cross_compilation.patch new file mode 100644 index 0000000000..5e4c0d2aa1 --- /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 0000000000..07b740022a --- /dev/null +++ b/srcpkgs/sopwith/template @@ -0,0 +1,24 @@ +# Template file for 'sopwith' +pkgname=sopwith +version=1.8.4 +revision=1 +build_style=gnu-configure +depends="SDL" +makedepends="${depends}-devel" +hostmakedepends="autoconf 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 +} From a282376001c691e92795aad1b82f8fadaed9752f Mon Sep 17 00:00:00 2001 From: beefcurtains Date: Thu, 21 May 2015 05:16:09 +0000 Subject: [PATCH 2/3] sopwith: drop depends from template --- srcpkgs/sopwith/template | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srcpkgs/sopwith/template b/srcpkgs/sopwith/template index 07b740022a..07bf26d008 100644 --- a/srcpkgs/sopwith/template +++ b/srcpkgs/sopwith/template @@ -3,8 +3,7 @@ pkgname=sopwith version=1.8.4 revision=1 build_style=gnu-configure -depends="SDL" -makedepends="${depends}-devel" +makedepends="SDL-devel" hostmakedepends="autoconf automake ${makedepends}" short_desc="Sidescrolling shoot 'em up game" maintainer="beefcurtains " From 2270b8d10d8778bd10f3050643e07995c93b27b6 Mon Sep 17 00:00:00 2001 From: beefcurtains Date: Thu, 21 May 2015 05:23:23 +0000 Subject: [PATCH 3/3] sopwith: drop redundant makedepend --- srcpkgs/sopwith/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/sopwith/template b/srcpkgs/sopwith/template index 07bf26d008..32f6cad630 100644 --- a/srcpkgs/sopwith/template +++ b/srcpkgs/sopwith/template @@ -4,7 +4,7 @@ version=1.8.4 revision=1 build_style=gnu-configure makedepends="SDL-devel" -hostmakedepends="autoconf automake ${makedepends}" +hostmakedepends="automake ${makedepends}" short_desc="Sidescrolling shoot 'em up game" maintainer="beefcurtains " license="GPL-2"