summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0069d26f8d56f447a710ce77c509b3b96843bf1 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=mediainfo-git
pkgver=20.08.r25.g687f4b59
pkgrel=1
pkgdesc="Utility for displaying technical and tag data for media files"
arch=('i686' 'x86_64')
url="https://mediaarea.net/en/MediaInfo"
license=('BSD')
depends=('glibc' 'libmediainfo')
makedepends=('git')
provides=('mediainfo')
conflicts=('mediainfo')
source=("git+https://github.com/MediaArea/MediaInfo.git")
sha256sums=('SKIP')


pkgver() {
  cd "MediaInfo"

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

build() {
  cd "MediaInfo/Project/GNU/CLI"

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

package() {
  cd "MediaInfo"

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