summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04f1b5c7da83d560a983663d5be53ab0710476be (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
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=phonon-qt5-mpv-git
pkgver=0.1.0.0.g069aca4
pkgrel=1
pkgdesc='Phonon MPV backend for Qt5. (GIT version)'
arch=('x86_64')
url='https://github.com/OpenProgger/phonon-mpv'
license=('GPL')
depends=(
  'gcc-libs' # 'libstdc++.so'
  'glibc' # 'libc.so'
  'mpv' 'libmpv.so'
  'phonon-qt5' # 'libphonon4qt5.so'
  'qt5-base' # 'libQt5Core.so' 'libQt5Gui.so' 'libQt5Widgets.so'
  'qt5-x11extras' # 'libQt5X11Extras.so'
)
makedepends=(
  'extra-cmake-modules'
  'git'
  'qt5-tools'
)
provides=(
  'phonon-qt5-mpv'
  'phonon-qt5-backend'
)
conflicts=('phonon-qt5-mpv')
source=('git+https://github.com/OpenProgger/phonon-mpv.git')
sha256sums=('SKIP')
options=('debug')

pkgver() {
  cd phonon-mpv
  echo "$(git describe --long --tags | tr - . | tr -d v)"
}

build() {
  cmake -S phonon-mpv -B build \
    -DCMAKE_BUILD_TYPE=None \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_SKIP_RPATH=ON

  cmake --build build
}


package () {
  DESTDIR="${pkgdir}" cmake --install build
}