blob: ab668b773d46a85e77c10324e26f04a2755ede06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# 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
}
|