2020-03-06 15:14:35 +00:00
|
|
|
# Template file for 'tagparser'
|
|
|
|
pkgname=tagparser
|
2020-05-07 02:02:52 +00:00
|
|
|
version=9.2.0
|
2020-03-06 15:14:35 +00:00
|
|
|
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 <ajh@sideband.org>"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
homepage="https://github.com/Martchus/tagparser"
|
|
|
|
distfiles="https://github.com/Martchus/${pkgname}/archive/v${version}.tar.gz"
|
2020-05-07 02:02:52 +00:00
|
|
|
checksum=05538d4e034f5f008f1b253b7612b6519bb98d566347045bc3b76d5a3b5a7830
|
2020-03-06 15:14:35 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|