app-arch/microtar: new package, add 0.1.0

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-04-20 23:55:12 +02:00
parent e3c49bed18
commit 9c4eae5de6
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST microtar-0.1.0.tar.gz 4843 BLAKE2B f2390759ea575f2acbd4eeeaa6394e7e41c225fd858b58b2d138e5fb39f6f633d0ade117bf2435892caac673582c27af68909e76106687b6e10c72fc9bcdf117 SHA512 87279cb52896eb8bda6e05962489f08c5368b9330fd0e094bf7b740b293497f460a6f8a2a2694d5a265d3217ee2f51d8443291df4854e5bd04e157605e6150ef

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">rxi/microtar</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,25 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit 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"
KEYWORDS="~amd64"
LICENSE="MIT"
SLOT="0"
src_compile() {
tc-export CC
${CC} ${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
}