summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 455af25bf351f59c0b081440c731e73ca8b6fb09 (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
47
48
49
50
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=avm-git
pkgver=r31825.g91e91dc45
pkgrel=1
pkgdesc="The reference software for next codec from Alliance for Open Media"
arch=('i686' 'x86_64')
url="https://gitlab.com/AOMediaCodec/avm"
license=('BSD')
depends=('gcc-libs' 'nasm')
makedepends=('git' 'cmake')
provides=("avm=$pkgver")
conflicts=('avm' 'aom')
options=('staticlibs')
source=("git+https://gitlab.com/AOMediaCodec/avm.git")
sha256sums=('SKIP')


pkgver() {
  cd "avm"

  _rev=$(git rev-list --count --all)
  _hash=$(git rev-parse --short HEAD)
  printf "r%s.g%s" "$_rev" "$_hash"
}

build() {
  cd "avm"

  cmake \
    -B "_build" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX="/usr" \
    -DCMAKE_INSTALL_LIBDIR="lib" \
    ./
  make -C "_build"
}

check() {
  cd "avm"

  #make -C "_build" test
}

package() {
  cd "avm"

  make -C "_build" DESTDIR="$pkgdir" install
  install -Dm644 {LICENSE,PATENTS} -t "$pkgdir/usr/share/licenses/avm"
}