summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd3e2e861c098db4ecec3c10474f69689174234a (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: Igor Kushnir <igorkuo at gmail dot com>
pkgname=venturous
pkgver=1.4
pkgrel=1
pkgdesc="Random playback manager for Audacious"
arch=('i686' 'x86_64')
url="https://github.com/vedgy/venturous"
license=('GPL3')
depends=('qt5-base' 'libxkbcommon-x11' 'audacious')
makedepends=('git' 'cmake')
optdepends=('libnotify: desktop notifications'
            'libcue: Audacious CUE playlist format support'
            'xdg-utils: for some default custom actions')

prepare() {
  git clone "$url.git"
  cd "$pkgname"
  # If you want to install latest development version (can be unstable), just
  # comment out the next line (# git checkout "tags/v$pkgver").
  git checkout "tags/v$pkgver"
}

build() {
  cd "$srcdir/$pkgname"
  # If you prefer building with qt4, replace 'qt5-base' 'libxkbcommon-x11'
  # dependencies with 'qt4' and replace "qt5" with "qt4" on the next line:
  # ./update_submodules_and_configure qt4
  ./update_submodules_and_configure qt5
  cd "build"
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

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