app-arch/microtar - 0.1.0 (guru)

Search

Install

Install this version:

emerge -a =app-arch/microtar-0.1.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-arch/microtar-0.1.0

Or alternatively:

emerge --autounmask-write -a =app-arch/microtar-0.1.0

Package Information

Description:
A lightweight tar library written in ANSI C
Homepage:
https://github.com/rxi/microtar
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.1.0 8 ~amd64 0
View Raw Ebuild
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit edo toolchain-funcs

DESCRIPTION="A lightweight tar library written in ANSI C"
HOMEPAGE="https://github.com/rxi/microtar"
SRC_URI="https://github.com/rxi/microtar/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

src_compile() {
	edo $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} \
		-I./src \
		-fPIC \
		-shared \
		-Wl,-soname=libmicrotar.so \
		src/microtar.c \
		-o libmicrotar.so
}

src_install() {
	dolib.so libmicrotar.so
	doheader src/microtar.h
	dodoc README.md
}

Inherited Eclasses

edo

Manifest for 0.1.0

Type File Size Source URLs
DIST microtar-0.1.0.tar.gz 4843 bytes https://github.com/rxi/microtar/archive/refs/tags/v0.1.0.tar.gz