summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 54fc6d2f2130928618bb64fba13eedb1d88cc86b (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
# Maintainer: willemw <willemw12@gmail.com>

pkgname=ffmpeg-normalize-git
pkgver=1.20.1.r2.gbc0fbb3
pkgrel=1
pkgdesc="Audio normalization for Python/FFmpeg"
arch=('any')
url="https://github.com/slhck/ffmpeg-normalize"
license=('MIT')
depends=('ffmpeg' 'python-colorama' 'python-tqdm')
makedepends=('git' 'python-setuptools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $pkgname
  python setup.py build
}

check() {
  cd $pkgname
  python test/test.py
}

package() {
  cd $pkgname
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}