summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/utox/PKGBUILD38
-rw-r--r--pcr/utox/utox.install12
2 files changed, 50 insertions, 0 deletions
diff --git a/pcr/utox/PKGBUILD b/pcr/utox/PKGBUILD
new file mode 100644
index 000000000..e7fcf5048
--- /dev/null
+++ b/pcr/utox/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer (Arch): Vlad M. <vlad@archlinux.net>
+# Contributor (Arch): HÃ¥vard Pettersson <mail@haavard.me>
+# Contributor (Arch): Madotsuki <madotsuki at cock dot li>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname=utox
+_pkgname=uTox
+pkgver=0.6.1
+pkgrel=1
+pkgdesc='Lightweight Tox client'
+arch=('i686' 'x86_64' 'armv7h')
+url="https://github.com/GrayHatter/uTox"
+license=('GPL3')
+depends=('desktop-file-utils'
+ 'fontconfig'
+ 'libfilteraudio-git'
+ 'hicolor-icon-theme'
+ 'libdbus'
+ 'libxext'
+ 'libxrender'
+ 'openal'
+ 'toxcore'
+ 'v4l-utils')
+optdepends=('gtk3: GTK file picker')
+makedepends=('toxcore')
+source=("https://github.com/GrayHatter/$_pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('e375f1f2dc267a70dd2471673435e8281ea62c4743f6cda0fe9d211c816c7c4e')
+install="$pkgname.install"
+
+build() {
+ cd "$_pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+}
diff --git a/pcr/utox/utox.install b/pcr/utox/utox.install
new file mode 100644
index 000000000..f6b9b8021
--- /dev/null
+++ b/pcr/utox/utox.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &>/dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}