aboutsummaryrefslogtreecommitdiffstats
path: root/main/htop/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2018-02-06 16:53:37 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2018-02-06 17:02:09 +0100
commit90a3cce37bbaba8eb240ccc70946e7937cde9a15 (patch)
treeb8d1a242642caf166dabef6bc4e8c3a61343c4a7 /main/htop/APKBUILD
parent395f0980130f29e51c9c66987e88f0e05cf06c7a (diff)
downloadaports-90a3cce37bbaba8eb240ccc70946e7937cde9a15.tar.bz2
aports-90a3cce37bbaba8eb240ccc70946e7937cde9a15.tar.xz
main/htop: modernize APKBUILD
Diffstat (limited to 'main/htop/APKBUILD')
-rw-r--r--main/htop/APKBUILD13
1 files changed, 6 insertions, 7 deletions
diff --git a/main/htop/APKBUILD b/main/htop/APKBUILD
index 315cfeb77a..349b28bf41 100644
--- a/main/htop/APKBUILD
+++ b/main/htop/APKBUILD
@@ -12,9 +12,9 @@ makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="$url/releases/$pkgver/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -23,14 +23,13 @@ build() {
--mandir=/usr/share/man \
--localstatedir=/var \
--enable-cgroups \
- --enable-taskstats \
- || return 1
- make || return 1
+ --enable-taskstats
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
md5sums="7d354d904bad591a931ad57e99fea84a htop-2.0.2.tar.gz"