aur-packages/htop-vim-mode-git/PKGBUILD

53 lines
1.1 KiB
Bash
Raw Normal View History

2020-01-22 14:19:15 -06:00
# Maintainer: Daniel Flanagan <daniel@lyte.dev>
_gitname=htop
_githubuser=lytedev
2020-01-22 15:11:33 -06:00
_gitrepo=https://github.com/$_githubuser/$_gitname
2020-01-22 14:19:15 -06:00
_gitbranch=daniel/add-simple-vim-mode
_gitcommit=9ed47a2
_gitcommitcount=1081
pkgname=${_gitname}-vim-mode-git
pkgver=1081.9ed47a2
pkgrel=1
pkgdesc="lytedev's fork of the process monitor with a vim_mode setting"
arch=('x86_64')
2020-01-22 15:11:33 -06:00
url="$_gitrepo"
2020-01-22 14:19:15 -06:00
license=('GPL2')
depends=('ncurses')
makedepends=('git' 'python')
optdepends=('lsof: list open files for running process'
'strace: attach to running process')
2020-01-22 15:11:33 -06:00
provides=("${_gitname}")
conflicts=("${_gitname}")
source=("git+${url}.git#branch=${_gitbranch}")
2020-01-22 14:19:15 -06:00
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
local ver="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
printf "%s" "${ver//-/.}"
}
prepare() {
cd "$srcdir/$_gitname"
./autogen.sh
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-unicode \
--enable-openvz \
--enable-vserver \
--enable-cgroup
}
build() {
cd "$srcdir/$_gitname"
make
}
package() {
cd "$srcdir/$_gitname"
make DESTDIR="$pkgdir/" install
}