1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00

main/base64: overwrite busybox base64 symlink

Otherwise there are two versions of base64 installed
This commit is contained in:
Clayton Craft 2025-05-16 13:14:59 -07:00 committed by achill (fossdd)
parent e891aa4228
commit a681444a7c

View file

@ -3,7 +3,7 @@
pkgname=base64 pkgname=base64
# NOTE: The primary use of this library is for main/nodejs. # NOTE: The primary use of this library is for main/nodejs.
pkgver=0.5.2 pkgver=0.5.2
pkgrel=0 pkgrel=1
pkgdesc="Fast Base64 stream encoder/decoder in C99, with SIMD acceleration" pkgdesc="Fast Base64 stream encoder/decoder in C99, with SIMD acceleration"
url="https://github.com/aklomp/base64" url="https://github.com/aklomp/base64"
arch="all" arch="all"
@ -30,7 +30,9 @@ build() {
export CFLAGS="$CFLAGS -Wno-unused-command-line-argument" export CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
# Upstream recommends building with clang due to better support for NEON # Upstream recommends building with clang due to better support for NEON
# intrinsics. # intrinsics.
# Note: Overwrite busybox's base64 symlink with bindir
cmake -B build -G Ninja \ cmake -B build -G Ninja \
-DCMAKE_INSTALL_BINDIR=/bin \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=clang \ -DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_CXX_COMPILER=clang++ \
@ -57,8 +59,8 @@ package() {
DESTDIR="$pkgdir" cmake --install build DESTDIR="$pkgdir" cmake --install build
cd "$pkgdir" cd "$pkgdir"
rm -f usr/bin/test_base64 rm -f bin/test_base64
rm -f usr/bin/benchmark rm -f bin/benchmark
} }
libbase64() { libbase64() {