feat(docker): use alpine native taglib

bumps from 2.0.1 to 2.1.1
This commit is contained in:
sentriz
2025-09-18 16:47:42 +01:00
parent 3db183bda4
commit c9f41810af
2 changed files with 1 additions and 69 deletions

No files matched your search

+1 -13
View File
@@ -1,12 +1,3 @@
FROM alpine:3.22 AS builder-taglib
WORKDIR /tmp
COPY alpine/taglib/APKBUILD .
RUN apk update && \
apk add --no-cache abuild doas && \
echo "permit nopass root" > /etc/doas.conf && \
abuild-keygen -a -n -i && \
REPODEST=/pkgs abuild -F -r
FROM golang:1.25-alpine3.22 AS builder
RUN apk add -U --no-cache \
build-base \
@@ -14,12 +5,9 @@ RUN apk add -U --no-cache \
git \
sqlite \
zlib-dev \
taglib-dev \
go
# TODO: delete this block when taglib v2 is on alpine packages
COPY --from=builder-taglib /pkgs/*/*.apk /pkgs/
RUN apk add --no-cache --allow-untrusted /pkgs/*
WORKDIR /src
COPY go.mod .
COPY go.sum .
-56
View File
@@ -1,56 +0,0 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=taglib2
pkgver=2.0.1
pkgrel=0
pkgdesc="Library for reading and editing metadata of several popular audio formats"
url="https://taglib.github.io/"
arch="all"
license="LGPL-2.1-only OR MPL-1.1"
makedepends="zlib-dev utfcpp cmake samurai"
checkdepends="cppunit-dev"
subpackages="
$pkgname-dev
libtag:_lib
libtag_c:_lib
"
source="https://taglib.github.io/releases/taglib-$pkgver.tar.gz"
builddir="$srcdir/taglib-$pkgver"
# secfixes:
# 1.11.1-r2:
# - CVE-2017-12678
# - CVE-2018-11439
build() {
CFLAGS="$CFLAGS -flto=auto" \
CXXFLAGS="$CXXFLAGS -flto=auto" \
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DWITH_ZLIB=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTING="$(want_check && echo ON || echo OFF)" \
-DVISIBILITY_HIDDEN=ON
CPLUS_INCLUDE_PATH="/usr/include/utf8cpp" \
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
_lib() {
pkgdesc="$pkgdesc ($subpkgname lib)"
amove usr/lib/$subpkgname.so.*
}
sha512sums="
25ee89293a96d7f8dca6276f822bdaef01fd98503b78c20ffeac8e1d9821de7273a5127146aa798d304c6a995cb2b7229a205aff1cc261b5d4fa9e499dda0439 taglib-2.0.1.tar.gz
"