File PKGBUILD of Package qlcplus-qt5-git

# Original author: Jerome Lebleu <jerome dot lebleu at mailoo dot org>

pkgname=qlcplus-qt5-git
pkgver=4.12.3.1442446425.89176d1
pkgrel=1
pkgdesc="Q Light Controller Plus - The open DMX lighting desk software for controlling professional lighting fixtures."
arch=('i686' 'x86_64')
url="http://qlcplus.org/"
license=('APACHE')
depends=('qt5-script' 'qt5-multimedia' 'libftdi-compat' 'libsndfile' 'libmad' 'shared-mime-info' 'fftw')
makedepends=('make' 'pkgconfig' 'qt5-tools' 'ca-certificates' 'ca-certificates-utils' 'iptables')
# ola need to be installed at build time for the plugin to be compiled
optdepends=('ola: Open Lighting Architecture plugin')
conflicts=('qlc' 'qlc-svn')
install=${pkgname}.install
source=("${pkgname}-${pkgver}.tar.gz")
md5sums=('SKIP')

build() {
  cd "${pkgname}-${pkgver}"
  ./translate.sh ui
  qmake-qt5
  make
}

package() {
  cd "${pkgname}-${pkgver}"
  make INSTALL_ROOT="${pkgdir}/" install
}