# $Id: PKGBUILD 41747 2011-03-08 20:14:52Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: hydro pkgname=libmediainfo pkgver=0.7.42 pkgrel=1 pkgdesc="shared library for mediainfo" arch=('i686' 'x86_64') url="http://mediainfo.sourceforge.net" license=('GPL') depends=( 'curl' 'libmms>=0.5-2' 'libzen>=0.4.15') makedepends=('libtool' 'automake' 'autoconf') options=(!libtool) source=(http://downloads.sourceforge.net/mediainfo/${pkgname}_${pkgver}.tar.bz2) md5sums=('68beb24292e9a9d207b8226411af8d17') build() { cd $srcdir/MediaInfoLib/Project/GNU/Library sh ./autogen ./configure --prefix=/usr --enable-shared --disable-static --with-libcurl --with-libmms make clean make make DESTDIR=$pkgdir install for i in MediaInfo MediaInfoDLL; do install -dm 755 $pkgdir/usr/include/$i install -m 644 $srcdir/MediaInfoLib/Source/$i/*.h $pkgdir/usr/include/$i done install -dm 755 $pkgdir/usr/lib/pkgconfig install -m 644 $srcdir/MediaInfoLib/Project/GNU/Library/libmediainfo.pc $pkgdir/usr/lib/pkgconfig sed -i -e 's|Version: |Version: '$pkgver'|g' $pkgdir/usr/lib/pkgconfig/libmediainfo.pc }