From b69e01c0ded9c880e2e308bc65e9030c377b5e94 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 20 May 2015 19:59:30 +0200 Subject: [PATCH] bsd-games: fixes for musl. different mirror. --- srcpkgs/bsd-games/patches/stdio.h.diff | 3 ++- srcpkgs/bsd-games/template | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/srcpkgs/bsd-games/patches/stdio.h.diff b/srcpkgs/bsd-games/patches/stdio.h.diff index 786fa54c4f..0297487303 100644 --- a/srcpkgs/bsd-games/patches/stdio.h.diff +++ b/srcpkgs/bsd-games/patches/stdio.h.diff @@ -1,10 +1,11 @@ diff -ru a/include/stdio.h b/include/stdio.h --- a/include/stdio.h 2000-08-04 10:24:39.000000000 +1000 +++ b/include/stdio.h 2005-06-18 14:26:35.000000000 +1000 -@@ -34,6 +34,10 @@ +@@ -34,6 +34,11 @@ #include #include_next ++#include +__BEGIN_DECLS + #ifndef HAVE_fgetln diff --git a/srcpkgs/bsd-games/template b/srcpkgs/bsd-games/template index f939ba0125..101e037ba1 100644 --- a/srcpkgs/bsd-games/template +++ b/srcpkgs/bsd-games/template @@ -1,7 +1,7 @@ # Template file for 'bsd-games'. Based on Arch PKGBUILD by Chris Brannon. pkgname=bsd-games version=2.17 -revision=1 +revision=2 patch_args="-Np1" build_style=gnu-configure make_dirs=" @@ -15,7 +15,7 @@ short_desc="A linux port for a collection of BSD command line games" maintainer="Christian Neukirchen " license="BSD" homepage="ftp://ftp.ibiblio.org/pub/Linux/games/" -distfiles="ftp://ftp.ibiblio.org/pub/Linux/games/${pkgname}-${version}.tar.gz" +distfiles="ftp://ftp.lip6.fr/pub/linux/sunsite/games/${pkgname}-${version}.tar.gz" checksum=066f924aef6c1c5ea946f588e36f303021f5dfc093944738f025d8edbc6fff60 nocross=yes @@ -36,6 +36,11 @@ post_extract() { sed -i "s/\.I range/\.It range/g" arithmetic/arithmetic.6 sed -i "s/game were the/game where the/g" gomoku/gomoku.6 sed -i 's|/usr/games|/usr/bin|g' wargames/wargames + + sed -i '1i#include ' banner/banner.c + sed -i 's/getdate/get_date/g' hack/*.[ch] + sed -i '1i#include ' wump/wump.c + sed -i 's/-DOTTO//' hunt/Makeconfig } do_install() {