tkurbad-overlay/app-arch/unlzx/unlzx-1.1.ebuild
2025-09-23 09:44:02 +02:00

32 lines
844 B
Bash

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/unlzx/unlzx-1.1.ebuild,v 1.28 2010/01/01 19:43:52 fauli Exp $
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Unarchiver for Amiga LZX archives"
SRC_URI="https://aminet.net/misc/unix/${PN}.c.gz https://aminet.net/misc/unix/${PN}.c.readme"
HOMEPAGE="https://aminet.net/misc/unix/${PN}.c.gz.readme"
SLOT="0"
LICENSE="freedist"
IUSE=""
KEYWORDS="alpha amd64 ~hppa ppc sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
src_unpack() {
mkdir "${S}"
gzip -dc "${DISTDIR}"/${PN}.c.gz > "${S}"/unlzx.c
cp "${DISTDIR}"/${PN}.c.readme "${S}"/${PN}.c.readme
}
src_compile() {
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o unlzx unlzx.c || die
}
src_install() {
dobin unlzx
dodoc unlzx.c.readme
}