# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=rofi-top
pkgver=0_git20171016
# Upstream doesn't do releases.
_gitrev=9416addf91dd1bd25dfd5a8c5f1c7297c444408e
pkgrel=2
pkgdesc="Plugin for rofi that emulates top behaviour"
url="https://github.com/davatorium/rofi-top"
arch="all"
license="MIT"
depends="cmd:rofi"
makedepends="
	autoconf
	automake
	libgtop-dev
	libtool
	rofi-dev
	"
source="https://github.com/davatorium/rofi-top/archive/$_gitrev/rofi-top-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"

prepare() {
	default_prepare

	autoreconf -i
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

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

sha512sums="
e04123c5c51f6b858f1afa4a0d3e8ca3c57eccec37408461b3f4184e35e9ba734a62d31f7e7c8e7509fb253224b980671865409de6166ce20867d4096731e717  rofi-top-9416addf91dd1bd25dfd5a8c5f1c7297c444408e.tar.gz
"
