pkgname="psmisc"
pkgver="23.7"
pkgdesc='Miscellaneous procfs tools'
homepage="https://gitlab.com/psmisc/psmisc"
sources="${pkgname}-${pkgver}.tar.xz"
urls="https://sourceforge.net/projects/psmisc/files/${pkgname}/${sources[0]}"
md5sums="53eae841735189a896d614cba440eb10"

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

src_build() {
  ./configure --prefix=/usr
  make
}

src_check() {
  make check
}

src_install() {
  make DESTDIR="${pkgdir}" install
}
