summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0d44dd7862d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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"
+}