# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Sébastien Luttringer

pkgname=vicious
pkgver=2.7.1
pkgrel=1
pkgdesc='Widgets for the Awesome window manager'
url="https://github.com/Mic92/$pkgname"
arch=(any)
license=(GPL2)
depends=(lua53)
optdepends=('alsa-utils: for the Volume widget type'
            'curl: for widget types accessing network resources'
            'hddtemp: for the HDD Temp widget type'
            'wireless_tools: for the Wireless widget type')
_archive="$pkgname-$pkgver"
source=("$url/archive/v$pkgver/$_archive.tar.gz")
sha256sums=('6d572186b810e25f159a679744c40bfd25e7bf5e480089e648d86ffbab682f4b')

package() {
  cd "$_archive"
  install -Dm0644 -t "$pkgdir/usr/share/lua/5.3/$pkgname/" *.lua
  install -Dm0644 -t "$pkgdir/usr/share/lua/5.3/$pkgname/contrib/" contrib/*.lua
  install -Dm0644 -t "$pkgdir/usr/share/lua/5.3/$pkgname/widgets/" widgets/*.lua
  install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}
