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

pkgname=stalonetray
pkgver=1.5.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' 'libxrandr')
makedepends=('libxslt' 'docbook-xsl' 'meson' 'cmake' 'cmocka')
source=("$pkgname-$pkgver.tar.gz::https://github.com/d3adb5/stalonetray/archive/$pkgver.tar.gz")
sha512sums=('6781fbb36959609d444dbe890b7116afa4c77e7c60709ff9110f8a7c6352bc6021f82cbe9ce595e556846edbf99a7b5f9edfb2962480ed3feedb678afd67b5b5')

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
}
