Merge pull request #1626 from beefcurtains/sopwith

New package: sopwith-1.8.4
This commit is contained in:
Juan RP 2015-05-21 14:30:58 +02:00
commit d12a449512
4 changed files with 70 additions and 0 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 B

View File

@ -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

23
srcpkgs/sopwith/template Normal file
View File

@ -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 <beefcurtains@users.noreply.github.com>"
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
}