# 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.8.2
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=('9f6ef0110256974920a2cf71cdfa00dc0044fc42c851431d39983a8fdc732dfc')
install="$pkgname.install"

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

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