pkgname=pipemixer
pkgver=0.2.2
pkgdesc='TUI volume control app for pipewire'
arch=('x86_64')
homepage='https://github.com/heather7283/pipemixer'
license=('GPL-3.0-only')
depends=('glibc' 'libpipewire' 'ncurses')
makedepends=('git' 'meson' 'ninja')
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/heather7283/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('7d43f971754ac1b0ef4e37a7cb008a4f2be9a91297751b74dcaef9cf24a7c3f7')

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  local meson_args=(
    --prefix=/usr
    --buildtype=release
    --wrap-mode=nodownload
    -D python.bytecompile=1
  )
  meson setup build "${meson_args[@]}"
  meson compile -C build
}

src_install() {
  meson install -C build --destdir "$pkgdir"
}

# vim:ft=sh syn=sh et sw=2:
