Skip to content

Commit

Permalink
Split packaging to prepare/build/package
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonev committed Oct 5, 2021
1 parent f22894c commit 431d8fe
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions archlinux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

pkgname=iotop-c
pkgver=1.19
pkgrel=1
pkgrel=2
pkgdesc="simple top-like I/O monitor (implemented in C)"
arch=('any')
url="https://github.com/Tomas-M/iotop"
Expand All @@ -17,8 +17,17 @@ source=("${url}/releases/download/v${pkgver}/iotop-${pkgver}.tar.xz" "${url}/rel
validpgpkeys=('BA60BC20F37E59444D6D25001365720913D2F22D')
md5sums=('SKIP' 'SKIP')

package() {
prepare() {
cd iotop-${pkgver}
sed -i 's/sbin/bin/g' Makefile
make DESTDIR="${pkgdir}" V=1 install
}

build() {
cd iotop-${pkgver}
make DESTDIR="${pkgdir}" V=1
}

package() {
cd iotop-${pkgver}
make DESTDIR="${pkgdir}" install
}

0 comments on commit 431d8fe

Please sign in to comment.