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

pkgname=libebur128-git
pkgver=1.2.6.r0.g67b33ab
pkgrel=1
pkgdesc="A library implementing the EBU R128 loudness standard"
arch=('i686' 'x86_64')
url="https://github.com/jiixyj/libebur128"
license=('MIT')
depends=('glibc')
makedepends=('git' 'cmake')
provides=("libebur128=$pkgver")
conflicts=('libebur128')
options=('staticlibs')
source=("git+https://github.com/jiixyj/libebur128.git")
sha256sums=('SKIP')


pkgver() {
  cd "libebur128"

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

build() {
  cd "libebur128"

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

package() {
  cd "libebur128"

  make -C "_build" DESTDIR="$pkgdir" install
  install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/libebur128"
}