summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5e9a0db73d7c7651eda050bd9a6d10bfe2789f4 (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: Daniel Maslowski <info@orangecms.org>
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix

pkgname=upplay-git
pkgver=1.9.10.r28.gef79569
pkgrel=1
pkgdesc="A Qt-based UPnP audio Control point"
url="https://www.lesbonscomptes.com/upplay/"
arch=(x86_64)
license=(GPL-2.0-or-later)
depends=(libupnpp qt6-base qt6-webchannel qt6-webengine jsoncpp glibc gcc-libs hicolor-icon-theme
         libupnpp.so)
makedepends=(git qt6-tools)
provides=(upplay)
conflicts=(upplay)
source=("git+https://framagit.org/medoc92/upplay.git"
        "git+https://framagit.org/medoc92/amber-mpris.git")
sha256sums=('SKIP'
            'SKIP')

prepare() {
  cd upplay
  git submodule init
  git config submodule.amber-mpris.url "${srcdir}/amber-mpris"
  git -c protocol.file.allow=always submodule update
}

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

build() {
  cd upplay
  qmake6 -o Makefile upplay.pro PREFIX=/usr
  make
}

package() {
  cd upplay
  make install INSTALL_ROOT="${pkgdir}"
}