Skip to content
Snippets Groups Projects
Commit 867b5530 authored by alice's avatar alice
Browse files

community/taglib: upgrade to 1.13.1

also splits libs and builds the tools
parent b4ddd0ec
No related branches found
No related tags found
No related merge requests found
# Contributor: Leo <thinkabit.ukim@gmail.com> # Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=taglib pkgname=taglib
pkgver=1.13 pkgver=1.13.1
pkgrel=0 pkgrel=0
pkgdesc="Library for reading and editing metadata of several popular audio formats" pkgdesc="Library for reading and editing metadata of several popular audio formats"
url="https://taglib.github.io/" url="https://taglib.github.io/"
...@@ -9,9 +9,12 @@ arch="all" ...@@ -9,9 +9,12 @@ arch="all"
license="LGPL-2.1-only OR MPL-1.1" license="LGPL-2.1-only OR MPL-1.1"
makedepends="zlib-dev cmake samurai" makedepends="zlib-dev cmake samurai"
checkdepends="cppunit-dev" checkdepends="cppunit-dev"
subpackages="$pkgname-dev" subpackages="
source="https://taglib.github.io/releases/taglib-$pkgver.tar.gz $pkgname-dev
libtag:_lib
libtag_c:_lib
" "
source="https://taglib.github.io/releases/taglib-$pkgver.tar.gz"
# secfixes: # secfixes:
# 1.11.1-r2: # 1.11.1-r2:
...@@ -19,12 +22,16 @@ source="https://taglib.github.io/releases/taglib-$pkgver.tar.gz ...@@ -19,12 +22,16 @@ source="https://taglib.github.io/releases/taglib-$pkgver.tar.gz
# - CVE-2018-11439 # - CVE-2018-11439
build() { build() {
CFLAGS="$CFLAGS -flto=auto" \
CXXFLAGS="$CXXFLAGS -flto=auto" \
cmake -B build -G Ninja \ cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_BUILD_TYPE=MinSizeRel \
-DWITH_ZLIB=ON \ -DWITH_ZLIB=ON \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING="$(want_check && echo ON || echo OFF)" -DBUILD_EXAMPLES=ON \
-DBUILD_TESTING="$(want_check && echo ON || echo OFF)" \
-DVISIBILITY_HIDDEN=ON
cmake --build build cmake --build build
} }
...@@ -36,6 +43,12 @@ package() { ...@@ -36,6 +43,12 @@ package() {
DESTDIR="$pkgdir" cmake --install build DESTDIR="$pkgdir" cmake --install build
} }
_lib() {
pkgdesc="$pkgdesc ($subpkgname lib)"
amove usr/lib/$subpkgname.so.*
}
sha512sums=" sha512sums="
b6e3253d158b41173073c0da1915f5e4a3de947db918660817cb1c755fba7e3723ea1a335fbbc30b0dcf942348a471b493fe2ce1d52d1a808578edee14e1bfc7 taglib-1.13.tar.gz 986231ee62caa975afead7e94630d58acaac25a38bc33d4493d51bd635d79336e81bba60586d7355ebc0670e31f28d32da3ecceaf33292e4bc240c64bf00f35b taglib-1.13.1.tar.gz
" "
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment