net-libs/libuplink: add 1.14.1

Signed-off-by: David Reed <david-gentoo@reedfam.email>
This commit is contained in:
David Reed
2026-05-21 11:25:44 -07:00
parent 1cf6c7fda6
commit b11eeb939e
2 changed files with 64 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST libuplink-1.10.1.tar.gz 161116 BLAKE2B 3db8a546cf6e64054789eec0a9c35d9fd3f11ebe4e683edd8fb06676087235e6d036541f04fcc5609577493b7a90706714b330a4f32f80778a67b3a6728690ca SHA512 fa8b99e2c778005e1b83d0b2fa2b5d51cdbdad694528750fbe1da2455a994919915c4b6e6ce580c941a79bd60ddaff1718d4934972c1b989f0079732e35f651a
DIST libuplink-1.14.1.tar.gz 114926 BLAKE2B b766f5ae3d57548424fb61ec7670be42882bb00f081d09964cc961c20f1f4df59bf3e2fd3d4922b52038723888b6e7c29aeb068f95c63c43a723c11ef9544844 SHA512 fff14034803e724b1867421b585327075c807ed6e2026ed479374630e5fba1e1ab15ea4c53c823e7039b64e89fe6d50144b9d5d6f4e659436a800136b4036510
DIST uplink-c-1.10.1-vendor.tar.xz 1498076 BLAKE2B d19cea178a380dccff1f6e1fc98e0f7d7d13ea3011dcd40d1ae593dbcd7ac22b69fea1ea35a322fa4b495b892bf39792611eb512337fb247ae8165565706def3 SHA512 3d3771c62f80e557a78420c4d0928f8c3a10d585cabecc5bf3c62e18f1e27827d3a0dcae0dd04344d1f45b35aea47a00f0874d7b644e7181e2343415fb0dea88
DIST uplink-c-1.14.1-vendor.tar.xz 1531076 BLAKE2B 1b0ff22eee7f5f9ff08f24e2b2378c8aa780f8c21164686f408c0b2db020baeb5ead8ae9ad711f43b4ae91fcf6aece94963663c4853775d08aaaf7b9f2044752 SHA512 57383156705856a30e09d417a4839c1f311b0d775b73465afa79af384a5a6e293c53124d59c7e6cedad2c74be4811f7a80d790a89adc133c9f0107adf7f9fa6e

View File

@@ -0,0 +1,62 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="C library for the Storj V3 network (libuplink)"
HOMEPAGE="https://storj.io https://github.com/storj/uplink-c"
MY_PN="uplink-c"
SRC_URI="
https://github.com/storj/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/david-gentoo/uplink-c/releases/download/v${PV}/${MY_PN}-${PV}-vendor.tar.xz
"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="static-libs"
RESTRICT="test"
BDEPEND="
>=dev-lang/go-1.20:=
app-arch/unzip
virtual/pkgconfig
"
src_prepare() {
default
# remove upstream's pre-stripped flags and add SONAME
sed -i \
-e 's/LDFLAGS="-s -w"/LDFLAGS="-extldflags=-Wl,-soname,libuplink.so"/' \
scripts/build-lib || die
}
src_compile() {
emake build
}
src_install() {
# Shared libs
dolib.so .build/libuplink.so
# Optional static libs
if use static-libs ; then
dolib.a .build/libuplink.a
fi
# Headers (upstream copies them into .build/uplink)
insinto /usr/include/uplink
doins .build/uplink/*.h
# pkg-config file
insinto /usr/$(get_libdir)/pkgconfig
doins .build/libuplink.pc
}