From 513493c8d728d7330c21e54270d42fbf42307315 Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Mon, 25 Jan 2010 09:30:47 +0100 Subject: [PATCH] htop: fixed order usage for sed's line and cleaned up --- htop/Pkgfile | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/htop/Pkgfile b/htop/Pkgfile index de94170..e2474d0 100644 --- a/htop/Pkgfile +++ b/htop/Pkgfile @@ -7,23 +7,25 @@ name=htop version=0.8.1 -release=1 -source=(http://dl.sourceforge.net/sourceforge/${name}/${name}-${version}.tar.gz) +release=2 +source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz) build() { - cd $name-$version - echo "ac_cv_file__proc_stat=yes" > config.cache - echo "ac_cv_file__proc_meminfo=yes" >> config.cache - ./configure --build=$CHOST \ - --host=$CTARGET \ - --prefix=/usr \ - --disable-nls \ - --mandir=/usr/man \ - --cache-file=config.cache - sed -e '/#undef malloc/d' -e '/#undef realloc/d' -i config.h.in - make - make DESTDIR=$PKG install + cd $name-$version + echo "ac_cv_file__proc_stat=yes" > config.cache + echo "ac_cv_file__proc_meminfo=yes" >> config.cache + sed -i config.h.in -e '/#undef malloc/d' -e '/#undef realloc/d' + + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --disable-nls \ + --mandir=/usr/man \ + --cache-file=config.cache + + make + make DESTDIR=$PKG install - rm -rf $PKG/usr/{include,lib} - rm -rf $PKG/usr/share/{applications,pixmaps,} + rm -rf $PKG/usr/{include,lib} + rm -rf $PKG/usr/share/{applications,pixmaps,} } -- 2.26.2