# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=stalonetray
pkgver=1.0.3
pkgrel=1
pkgdesc="STAnd-aLONE sysTRAY. It has minimal build and run-time dependencies: the Xlib only."
arch=('x86_64')
url="https://github.com/d3adb5/stalonetray"
license=('GPL')
depends=('libx11' 'libxpm' 'libxinerama')
makedepends=('libxslt' 'docbook-xsl' 'meson')
source=("$pkgname-$pkgver.tar.gz::https://github.com/d3adb5/stalonetray/archive/$pkgver.tar.gz")
sha512sums=('30caa25afb4f7a92d58bb82574f89e858bb55878d9d4853673e31568639a68c98bb3f098e2f9105ef849d54f9f12705d9f841b87408796dd8467989c99fcf2f6')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  arch-meson . build
  meson compile -C build
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  meson install -C build --destdir "$pkgdir"
  install -D -m644 stalonetrayrc.sample "$pkgdir"/etc/stalonetrayrc # FIXME
}
