void-packages/srcpkgs/libmediainfo/template

47 lines
1.4 KiB
Bash
Raw Normal View History

2015-05-06 05:22:54 +02:00
# Template file for 'libmediainfo'
pkgname=libmediainfo
2015-07-22 12:44:31 +02:00
version=0.7.75
2015-05-06 05:22:54 +02:00
revision=1
short_desc="Shared library for mediainfo"
homepage="http://mediaarea.net/MediaInfo"
maintainer="Georg Schabel <gescha@posteo.de>"
license="BSD"
distfiles="https://mediaarea.net/download/source/${pkgname}/${version}/${pkgname}_${version}.tar.bz2"
2015-07-22 12:44:31 +02:00
checksum=72f69ec5b02f7f6d946c37469a70bb1d3ef416b7f0a8b21b39569358e90a6ac8
2015-05-06 05:22:54 +02:00
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="libmms-devel libcurl-devel libzen-devel"
configure_args="--enable-shared --disable-static
2015-05-06 05:22:54 +02:00
--with-libcurl --with-libmms"
create_wrksrc=yes
build_wrksrc="MediaInfoLib/Project/GNU/Library"
pre_configure() {
autoreconf -fi
}
2015-05-06 05:48:21 +02:00
do_install() {
make DESTDIR=${DESTDIR} install
for i in MediaInfo MediaInfoDLL; do
install -dm 755 ${DESTDIR}/usr/include/$i
install -m 644 ${wrksrc}/MediaInfoLib/Source/$i/*.h ${DESTDIR}/usr/include/$i
done
install -dm 755 ${DESTDIR}/usr/lib/pkgconfig
install -m 644 libmediainfo.pc ${DESTDIR}/usr/lib/pkgconfig
sed -i -e 's|Version: |Version: '$version'|g' ${DESTDIR}/usr/lib/pkgconfig/libmediainfo.pc
vlicense ${wrksrc}/MediaInfoLib/License.html
2015-05-06 05:48:21 +02:00
}
2015-05-06 05:22:54 +02:00
libmediainfo-devel_package() {
2015-05-06 19:28:54 +02:00
depends="${makedepends} libmediainfo>=${version}_${revision}"
2015-05-06 05:22:54 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
2015-05-06 05:22:54 +02:00
}
}