summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d44dd7862d32ada2876e5c79bfad0b7c997b59f (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
40
41
42
# Maintainer: Davi da Silva Böger <dsboger[at]gmail[dot]com>
pkgname=fmit-git
_pkgname=fmit
pkgver=r136.99674f1
pkgrel=1
pkgdesc="Free Music Instrument Tuner"
url="https://github.com/gillesdegottex/fmit"
arch=('i686' 'x86_64')
license=('GPL')
depends=('glut' 'qt5-multimedia' 'fftw' 'freeglut' 'hicolor-icon-theme' 'portaudio')
makedepends=('git' 'desktop-file-utils' 'xdg-utils')
conflicts=('fmit')
provides=('fmit')
install="${pkgname}.install"
source=('git+https://github.com/gillesdegottex/fmit')
md5sums=('SKIP')

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

build() {
  _fmitdir="${srcdir}/${_pkgname}"

  mkdir -p "${_fmitdir}/build"
  cd "${_fmitdir}/build"
  qmake-qt5 "PREFIX=/usr" "CONFIG+=acs_qt acs_alsa acs_jack acs_portaudio" ../${_pkgname}.pro
  make
}

package() {
  _fmitdir="${srcdir}/${_pkgname}"

  cd "${_fmitdir}/build"
  make INSTALL_ROOT="${pkgdir}" install
  
#  install -Dm644 "${_fmitdir}/distrib/fmit.appdata.xml" \
#	  "${pkgdir}/usr/share/appdata/fmit.appdata.xml"
#  install -Dm644 "${_fmitdir}/ui/images/fmit.svg" \
#	  "${pkgdir}/usr/share/icons/hicolor/scalable/apps/fmit.svg"
}