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

pkgname=libdca-git
pkgver=r100.g76c67bc
pkgrel=1
pkgdesc="A library for decoding DTS Coherent Acoustics streams"
arch=('i686' 'x86_64')
url="https://www.videolan.org/developers/libdca.html"
license=('GPL2')
depends=('glibc')
makedepends=('git')
provides=('libdca')
conflicts=('libdca')
options=('staticlibs')
source=("git+https://code.videolan.org/videolan/libdca.git")
sha256sums=('SKIP')


pkgver() {
  cd "libdca"

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

build() {
  cd "libdca"

  ./bootstrap
  ./configure --prefix="/usr"
  make
}

check() {
  cd "libdca"

  make check
}

package() {
  cd "libdca"

  make DESTDIR="$pkgdir" install
}