summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12b68e4203669906d77a7342683181b93159c22f (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
# Maintainer: Dennis Twardowsky <aur@devpty.de>
_pkgname=noson-app
pkgname="${_pkgname}-git"
pkgver=4.3.2.r1.gce434148
pkgrel=1
pkgdesc="SONOS controller for Linux platforms"
arch=('x86_64')
url="https://janbar.github.io/noson-app"
license=('GPL3')
groups=('base-devel')
depends=('cmake' 'qt5-base' 'qt5-quickcontrols2' 'qt5-graphicaleffects' 'qt5-svg')
makedepends=('cmake' 'git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+git://github.com/janbar/noson-app.git")
sha1sums=('SKIP')

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

build() {
  mkdir -p "$srcdir/build"
  cd "$srcdir/build"
  cmake "$srcdir/${pkgname%-git}" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib
  make
}

package() {
  cd "$srcdir/build"
  make DESTDIR="$pkgdir/" install
}