summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 318198118639d7bca26019f08c2c6f3630ca90ec (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
# Maintainer: Jose Riha <jose1711 gmail com>
# Contributor: dawn <crackofdusk at gmail ... com>
# Contributors: Profpatsch [https://bbs.archlinux.org/misc.php?email=68112]
#               ajs124
# Contributor: dos1

pkgname=performous-git
pkgver=1.2.0.r388.g288f14a39
pkgrel=1
pkgdesc='A free game like "Singstar", "Rockband" or "Stepmania" (version from git)'
arch=('i686' 'x86_64')
url="http://performous.org"
license=('GPL')
depends=('aubio' 'boost-libs' 'cairo' 'ffmpeg' 'fontconfig' 'gcc-libs' 'glib2' 'glibc' 'glibmm' 'icu' 'libepoxy' 'libjpeg-turbo' 'libpng' 'librsvg' 'libxml++2.6' 'opencv' 'pango' 'portaudio' 'portmidi' 'sdl2')
optdepends=('portmidi: MIDI drum support' 'opencv: webcam support' 'ttf-ms-fonts: Microsoft core fonts')
makedepends=('cmake' 'boost' 'git' 'help2man' 'glm' 'cpprestsdk' 'aubio')
provides=(performous)
conflicts=(performous)
source=($pkgname::"git+https://github.com/performous/performous.git"
        "git+https://github.com/performous/compact_enc_det.git"
        "git+https://github.com/performous/aubio.git")
md5sums=('SKIP'
         'SKIP'
         'SKIP')

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

build() {
  local cmake_options=(-B build -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=None -S $pkgname -W no-dev)
  cmake "${cmake_options[@]}"
  cmake --build build --verbose
}

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