initial commit
This commit is contained in:
commit
0a2ed3ec1f
52
htop-vim-mode-git/PKGBUILD
Normal file
52
htop-vim-mode-git/PKGBUILD
Normal file
|
@ -0,0 +1,52 @@
|
|||
# Maintainer: Daniel Flanagan <daniel@lyte.dev>
|
||||
|
||||
_gitname=htop
|
||||
_githubuser=lytedev
|
||||
_gitrepo=https://github.com/$githubuser/$gitname
|
||||
_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')
|
||||
url=$_gitrepo
|
||||
license=('GPL2')
|
||||
depends=('ncurses')
|
||||
makedepends=('git' 'python')
|
||||
optdepends=('lsof: list open files for running process'
|
||||
'strace: attach to running process')
|
||||
provides=('htop')
|
||||
conflicts=('htop')
|
||||
source=("git+https://github.com/lytedev/${_gitname}.git#branch=${_gitbranch}")
|
||||
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
|
||||
}
|
8
makefile
Normal file
8
makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
.PHONE: test namcap default
|
||||
|
||||
default: test
|
||||
|
||||
test: namcap
|
||||
|
||||
namcap:
|
||||
fd PKGBUILD | xargs namcap
|
Loading…
Reference in a new issue