summaryrefslogtreecommitdiff
path: root/community/libmediainfo/PKGBUILD
blob: 57e7f6553fe250fed9cef8a4da302337d2861295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $Id: PKGBUILD 50998 2011-07-04 11:41:36Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer:  hydro <hydro@freenet.de>

pkgname=libmediainfo
pkgver=0.7.45
pkgrel=1
pkgdesc="shared library for mediainfo"
arch=('i686' 'x86_64' 'mips64el')
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
	"libmediainfo-0.7.44-libmms.patch::http://www.calculate-linux.org/packages/media-libs/libmediainfo/files/libmediainfo-0.7.44-libmms.patch?format=raw")
md5sums=('b2148a4da794bb1d0721cfa328d59aeb'
         '1bdae4d3006b72e3f07cb1a9fa124950')

build() {
  cd $srcdir/MediaInfoLib/Project/GNU/Library
  sh ./autogen
  ./configure --prefix=/usr --enable-shared --disable-static --with-libcurl --with-libmms
  make clean
  (cd ../../.. && patch -p1 <$srcdir/libmediainfo-0.7.44-libmms.patch)
  make
}

package() {
  cd $srcdir/MediaInfoLib/Project/GNU/Library
  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
}