File PKGBUILD of Package entropypianotuner

# Maintainer: Christoph Wick <info@entropy-tuner.org>
pkgname=entropypianotuner
pkgver=1.1.7
pkgrel=1
pkgdesc="A tuner for your piano"
url="http://www.piano-tuner.org"
arch=('i686' 'x86_64')
license=('GPLv3')
depends=('qt5-base' 'qt5-multimedia' 'qt5-midi' 'fftw' 'libuv' 'qwt6-qt5')
makedepends=('qt5-base' 'qt5-tools' 'qt5-multimedia' 'qt5-midi' 'fftw' 'libuv' 'qwt6-qt5')
build() {
	# extract archive.tar.gz and move files to the source dir
	cd "${startdir}"
	tar -xzvf archive.tar.gz
	mv Entropy-Piano-Tuner*/* ${srcdir}

	# qmake and make the package
	cd "${srcdir}"
    
	qmake \
        "PKGDIR=$pkgdir" \
		"EPT_INSTALL_BIN_RDIR=/usr/bin" \
		"EPT_INSTALL_DATA_RDIR=/usr/share" \
        "EPT_INSTALL_LIB_RDIR=/usr/lib" \
        entropypianotuner.pro
        
	make
}

package() {
	# install the package
	cd ${srcdir}
	make install
}