summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavi da Silva Böger2015-08-10 15:30:07 -0300
committerDavi da Silva Böger2015-08-10 15:30:07 -0300
commitd061358beef96f9d92dd66398613a9096a3b43bd (patch)
tree1348d0addf0d7dc55e8decaf3904b5a4034aeb13
downloadaur-d061358beef96f9d92dd66398613a9096a3b43bd.tar.gz
First commit
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD42
-rw-r--r--fmit-git.install12
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..732e973cbbc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = fmit-git
+ pkgdesc = Free Music Instrument Tuner
+ pkgver = r136.99674f1
+ pkgrel = 1
+ url = https://github.com/gillesdegottex/fmit
+ install = fmit-git.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = desktop-file-utils
+ makedepends = xdg-utils
+ depends = glut
+ depends = qt5-multimedia
+ depends = fftw
+ depends = freeglut
+ depends = hicolor-icon-theme
+ depends = portaudio
+ provides = fmit
+ conflicts = fmit
+ source = git+https://github.com/gillesdegottex/fmit
+ md5sums = SKIP
+
+pkgname = fmit-git
+
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"
+}
diff --git a/fmit-git.install b/fmit-git.install
new file mode 100644
index 00000000000..029294d6700
--- /dev/null
+++ b/fmit-git.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}