1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-05-02 01:10:53 +02:00

unlzx: removed gcc warnings

This commit is contained in:
2017-05-21 12:49:15 +02:00
parent a5c483431a
commit 45b9b61188
3 changed files with 57 additions and 4 deletions
+5 -3
View File
@@ -1,7 +1,8 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
inherit toolchain-funcs
EAPI=6
inherit eutils toolchain-funcs
DESCRIPTION="Unarchiver for Amiga LZX archives"
SRC_URI="http://aminet.net/misc/unix/${PN}.c.gz http://aminet.net/misc/unix/${PN}.c.readme"
@@ -15,7 +16,8 @@ KEYWORDS="alpha amd64 ~hppa ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
src_unpack() {
mkdir "${S}"
gzip -dc "${DISTDIR}"/${PN}.c.gz > "${S}"/unlzx.c
cp "${DISTDIR}"/${PN}.c.gz.readme "${S}"/${PN}.c.gz.readme
cp "${DISTDIR}"/${PN}.c.readme "${S}"/${PN}.c.readme
epatch "${FILESDIR}"/unlzx-1.1-fix-compiler-warnings.patch
}
src_compile() {
@@ -24,5 +26,5 @@ src_compile() {
src_install() {
dobin unlzx
dodoc unlzx.c.gz.readme
dodoc unlzx.c.readme
}