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

pkgname=stalonetray
pkgver=1.2.0
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=('ad03983505449186bd15da323d98227c84866dc80d9fb47bef348a13906ce625825eb5bff1aed1dc17cb7a93be367ee9d6a3be3b026e4814659ac1f4a5b55bf5')

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
}
