diff options
author | Dawid Potocki | 2021-07-11 05:07:09 +1200 |
---|---|---|
committer | Dawid Potocki | 2021-07-11 05:15:27 +1200 |
commit | 935022cd08784cc9da47023dbc6f5f57037e0e7d (patch) | |
tree | 31ea50fa70346c774338fa9eb088db5cde64250c /PKGBUILD | |
download | aur-935022cd08784cc9da47023dbc6f5f57037e0e7d.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..62c1219d24ad --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Dawid Potocki <archlinux a dawidpotocki , com> + +_pkgname=htop +pkgname="$_pkgname-vim" +pkgver=3.0.5 +pkgrel=1 +pkgdesc='Interactive process viewer with a Vim keybindings patch' +arch=('x86_64') +url='https://htop.dev/' +license=('GPL') +depends=('ncurses' 'libncursesw.so' 'libnl') +makedepends=('lm_sensors') +optdepends=('lm_sensors: show cpu temperatures' + 'lsof: show files opened by a process' + 'strace: attach to a running process') +conflicts=('htop') +options=('!emptydirs') +source=("https://github.com/htop-dev/htop/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz" + 'vim-keybindings.patch' +) +sha256sums=('4c2629bd50895bd24082ba2f81f8c972348aa2298cc6edc6a21a7fa18b73990c' + '181d5bd6c3d9cfe65bb78453ccd5be22db947485954879af65d3b9757fcf46f5' +) + +prepare() { + cd "$_pkgname-$pkgver" + patch -Np1 < ../vim-keybindings.patch + + autoreconf -fi +} + +build() { + cd "$_pkgname-$pkgver" + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-cgroup \ + --enable-delayacct \ + --enable-openvz \ + --enable-unicode \ + --enable-vserver + + make +} + +package() { + make -C "$_pkgname-$pkgver" DESTDIR="$pkgdir" install +} |