summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5cc2cdadba599c01871fe7cd4fad86da83958ad1 (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
# Maintainer: tocic <tocic at protonmail dot ch>

pkgname=cavalcade-git
pkgver=0.8.r17.g68ba5a2
pkgrel=1
pkgdesc="GUI wrapper for C.A.V.A. utility"
arch=("any")
url="https://github.com/worron/cavalcade"
license=("GPL-3.0-or-later")
depends=("cava>=0.6"
         "gtk3>=3.18"
         "python>=3.5"
         "python-cairo"
         "python-gobject")
makedepends=("git" "python-setuptools")
optdepends=("gstreamer>=1.0: audio player support"
            "gst-plugins-good: required plugins for gstreamer"
            "python-pillow: auto color detection support")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname}::git+https://github.com/worron/cavalcade.git#branch=devel")
b2sums=("SKIP")

pkgver() {
  printf "%s" \
    $(git -C "${pkgname}" describe --long --tags \
      | sed "s/\([^-]*-g\)/r\1/;s/-/./g")
}

prepare() {
  git -C "${pkgname}" clean --force -xd
}

build() {
  cd "${pkgname}"

  python "setup.py" build
}

package() {
  cd "${pkgname}"

  export PYTHONWARNINGS="ignore:setup.py install is deprecated"
  python "setup.py" install \
    --optimize=1 \
    --root="${pkgdir}" \
    --skip-build
}