### this file is sourced not run
PKGVER=1.0.17
PKGBUILD=1
PKGARCH=x86_64

# james - re-packaged official binary
TARBALL=btop-$PKGVER-x86_64-linux-musl.tbz
MD5SUM=bd282b18a9df510481b900ac9f0228ab
SRC_URL=https://github.com/aristocratos/btop/releases/download/v${PKGVER}/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="btop: btop $PKGVER (Resource monitor)
btop: 
btop: btop is Resource monitor that shows usage and stats for processor, 
btop: memory, disks, network and processes. It is the C++ version and 
btop: continuation of bashtop and bpytop
btop:
btop: This is a re-packaged official binary.
btop: 
btop: https://github.com/aristocratos/btop
btop: 
btop: 
"

### default pkg_download
pkg_prepare() {
	pkg_check $SRC_DIR $TARBALL $MD5SUM &&
	mkdir tmp/btop &&
	tar -xf $SRC_DIR/$TARBALL -C tmp/btop
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/btop &&
	make install PREFIX=/usr &&
	pkg_build_slackdesc
}


