summaryrefslogtreecommitdiff
path: root/pcr/qtox-git
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-21 01:13:23 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-21 02:17:07 -0300
commit74be8b6ba8bbbaaa24799fd1ee5bc45396812b64 (patch)
tree8bab5fca1129bb176355b27e5ae1884e153131d8 /pcr/qtox-git
parent909496a12887695f37bcc88e0f7478e87b289614 (diff)
qtox-git: add new package to [pcr]
Diffstat (limited to 'pcr/qtox-git')
-rw-r--r--pcr/qtox-git/PKGBUILD53
-rw-r--r--pcr/qtox-git/qtox-git.install12
2 files changed, 65 insertions, 0 deletions
diff --git a/pcr/qtox-git/PKGBUILD b/pcr/qtox-git/PKGBUILD
new file mode 100644
index 000000000..5967f25bc
--- /dev/null
+++ b/pcr/qtox-git/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer (Arch): Jiachen Yang <farseerfc@gmail.com>
+# Maintainer (Arch): Vlad M. <vlad@archlinux.net>
+# Contributor (Arch): Håvard Pettersson <mail@haavard.me>
+# Contributor (Arch): Kevin MacMartin <prurigro at gmail dot com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+_pkgname=qtox
+pkgname=qtox-git
+pkgver=r4569.edc35ba
+_gitver=edc35ba9dfce0eae1557016933147c926f04a22d
+pkgrel=1
+pkgdesc='Powerful Tox client written in C++/Qt that follows the Tox design guidelines.'
+arch=('i686' 'x86_64''armv7h')
+url='https://github.com/tux3/qTox'
+license=('GPL3')
+depends=('desktop-file-utils'
+ 'libfilteraudio'
+ 'libxkbcommon-x11'
+ 'libxss'
+ 'openal'
+ 'opencv'
+ 'qrencode'
+ 'qt5-svg'
+ 'sqlcipher'
+ 'toxcore')
+makedepends=('git' 'qt5-tools')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+install=$pkgname.install
+source=("$_pkgname::git+https://github.com/tux3/qTox.git/#commit=$_gitver")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd $_pkgname
+
+ # fixing qtox desktop icon and avoid conflict with status icon
+ sed -i "s/Icon=qtox/Icon=qTox/" qTox.desktop
+
+ install -d build
+ cd build
+ qmake-qt5 ENABLE_SYSTRAY_UNITY_BACKEND=NO ..
+ make
+}
+
+package() {
+ cd $_pkgname/build
+ make INSTALL_ROOT="$pkgdir" install
+}
diff --git a/pcr/qtox-git/qtox-git.install b/pcr/qtox-git/qtox-git.install
new file mode 100644
index 000000000..0e0aa6276
--- /dev/null
+++ b/pcr/qtox-git/qtox-git.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_upgrade
+}