# 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.9.4
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'
         '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=('e8d1443daca87bb4ac14486327495a9d76591056f57fe737569f163ab2fc70e9')

build() {
  cd "$_pkgname-$pkgver"
  make
}

package() {
  cd "$_pkgname-$pkgver"
  make PREFIX=/usr DESTDIR="$pkgdir" install
}