diff --git a/common/shlibs b/common/shlibs index 6231e0fecc..5c87b25fe6 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3860,3 +3860,4 @@ libslirp.so.0 libslirp-4.2.0_1 libqpdf.so.28 libqpdf-10.0.0_1 libstk-4.6.1.so libstk-4.6.1_1 libc++utilities.so.5 cpp-utilities-5.2.0_1 +libtagparser.so.9 tagparser-9.1.2_1 diff --git a/srcpkgs/tagparser-devel b/srcpkgs/tagparser-devel new file mode 120000 index 0000000000..d0a4448692 --- /dev/null +++ b/srcpkgs/tagparser-devel @@ -0,0 +1 @@ +tagparser \ No newline at end of file diff --git a/srcpkgs/tagparser/template b/srcpkgs/tagparser/template new file mode 100644 index 0000000000..9b588ecbbb --- /dev/null +++ b/srcpkgs/tagparser/template @@ -0,0 +1,34 @@ +# Template file for 'tagparser' +pkgname=tagparser +version=9.1.2 +revision=1 +build_style=cmake +configure_args="-DBUILD_SHARED_LIBS:BOOL=ON" +makedepends="cpp-utilities-devel zlib-devel" +short_desc="C++ library for handling AAC, ID3, Vorbis, Opus, FLAC and Matroska tags" +maintainer="Andrew J. Hesford " +license="GPL-2.0-only" +homepage="https://github.com/Martchus/tagparser" +distfiles="https://github.com/Martchus/${pkgname}/archive/v${version}.tar.gz" +checksum=234987086ac0dff279a3888b0e965294fdca6adb7412b063ea36f2cc564fbce2 + +tagparser-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision} cpp-utilities-devel" + + pkg_install() { + vmove usr/include + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + + # Rename cmake modules to fit with the rest of the system + vmkdir usr/lib/cmake + cmake_source="${DESTDIR}/usr/share/${sourcepkg}/cmake" + cmake_dest="${PKGDESTDIR}/usr/lib/cmake/${sourcepkg}" + mv "$cmake_source" "$cmake_dest" + + # Update cmake configuration to point to new location + vsed -i "${cmake_dest}/${sourcepkg}Config.cmake" \ + -e "s@share/${sourcepkg}/cmake@lib/cmake/${sourcepkg}@g" + } +}