aports/testing/fetch/APKBUILD
Jakub Jirutka cba4718ed2 testing/fetch: new aport
It's called just "fetch" in other repositories:
https://repology.org/project/fetch-freebsd/versions
2026-04-25 12:31:07 +02:00

51 lines
1.1 KiB
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=fetch
_projname=fetch-freebsd
pkgver=14.0.0
pkgrel=0
pkgdesc="Portable fetch utility from FreeBSD"
url="https://github.com/jrmarino/fetch-freebsd"
arch="all"
license="BSD-3-Clause"
makedepends="
cmake
openssl-dev
samurai
"
subpackages="
$pkgname-doc
$pkgname-dev
libfetch
"
source="https://github.com/jrmarino/fetch-freebsd/archive/v$pkgver/$_projname-$pkgver.tar.gz"
builddir="$srcdir/$_projname-$pkgver"
options="!check" # no tests provided
build() {
local crossopts=
[ "$CBUILD" != "$CHOST" ] \
&& crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=None \
-DFETCH_LIBRARY=ON \
-DUSE_SYSTEM_SSL=ON \
$crossopts
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
libfetch() {
default_libs
}
sha512sums="
9a3bd1e03e75eaf3c1e3862f95597aeee775582b8e265239afe9f02ef87abe087257e315c36cfb93da2ab87cf1fae3b238ff07d7293be25b8accc3f6364ae5f2 fetch-freebsd-14.0.0.tar.gz
"