opt/taglib/Pkgfile

23 lines
601 B
Plaintext
Raw Normal View History

2011-12-12 23:34:46 +01:00
# Description: Library to read and edit the meta-data of popular audio formats.
2016-05-11 15:36:42 +02:00
# URL: http://taglib.github.io/
2014-11-10 13:25:50 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2011-12-12 23:34:46 +01:00
# Depends on: cmake
2016-05-11 15:36:42 +02:00
# Optional: boost
2011-12-12 23:34:46 +01:00
name=taglib
2021-02-18 08:40:35 +01:00
version=1.12
2011-12-12 23:34:46 +01:00
release=1
2016-05-11 15:36:42 +02:00
source=(http://taglib.github.io/releases/$name-$version.tar.gz)
2011-12-12 23:34:46 +01:00
build() {
2021-02-18 08:40:35 +01:00
[[ -e /usr/bin/ninja ]] && PKGMK_TAGLIB=' -G Ninja'
cmake -S $name-$version -B build $PGKMK_TAGLIB \
2011-12-12 23:34:46 +01:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_RELEASE_TYPE=Release \
2016-05-11 15:36:42 +02:00
-DBUILD_SHARED_LIBS=ON \
2011-12-12 23:34:46 +01:00
-DWITH_MP4=ON \
2016-05-11 15:36:42 +02:00
-DWITH_ASF=ON
2021-02-18 08:40:35 +01:00
cmake --build build
DESTDIR=$PKG cmake --install build
2011-12-12 23:34:46 +01:00
}