summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb0328ad06d70ed2c5737667a03fe65c2a4712ac (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
40
41
42
43
44
45
46
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libmediainfo-git
pkgver=23.03.r18.gb6025e1a5
pkgrel=1
pkgdesc="Shared library for mediainfo"
arch=('i686' 'x86_64')
url="https://mediaarea.net/en/MediaInfo"
license=('BSD')
depends=('glibc' 'curl' 'glib2' 'libmms' 'libzen' 'zlib')
makedepends=('git')
provides=("libmediainfo=$pkgver")
conflicts=('libmediainfo')
source=("git+https://github.com/MediaArea/MediaInfoLib.git")
sha256sums=('SKIP')


pkgver() {
  cd "MediaInfoLib"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "MediaInfoLib/Project/GNU/Library"

  ./autogen.sh
  ./configure \
    --prefix="/usr" \
    --with-libcurl \
    --with-libmms
  make
}

check() {
  cd "MediaInfoLib/Project/GNU/Library"

  #make check
}

package() {
  cd "MediaInfoLib"

  make -C "Project/GNU/Library" DESTDIR="$pkgdir" install
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/libmediainfo"
}