summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c29d264aded855e343d3d6de21d91c8655debab0 (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
# Maintainer: Bleuzen <supgesu at gmail dot com>

pkgname=olivia
pkgver=r815.2235bab
pkgrel=1
pkgdesc="Elegant Cloud Music Player for Linux Desktop"
arch=('i686' 'x86_64')
url="https://github.com/keshavbhatt/olivia"
license=('MIT')
depends=('qt5-base' 'qt5-webkit' 'mpv' 'python' 'wget' 'socat' 'ffmpeg' 'taglib' 'pv')
makedepends=('git' 'qt5-tools')
source=("git+https://github.com/keshavbhatt/olivia.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$pkgname"
  qmake Olivia.pro PREFIX="$pkgdir/usr" -spec linux-g++ CONFIG+=release
  make
}

package() {
  cd "$pkgname"
  make DESTDIR="$pkgdir/usr" install
}