diff options
-rw-r--r-- | community/wavemon/APKBUILD | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/community/wavemon/APKBUILD b/community/wavemon/APKBUILD index 88eb0edb2e..b218a8ba48 100644 --- a/community/wavemon/APKBUILD +++ b/community/wavemon/APKBUILD @@ -8,16 +8,18 @@ pkgdesc="Ncurses-based monitoring application for wireless network devices" url="https://github.com/uoaerg/wavemon" arch="all" license="GPL2+" -makedepends="ncurses-dev libcap-dev libnl3-dev libnl3-dev autoconf automake" +makedepends="ncurses-dev libcap-dev libnl3-dev autoconf automake" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/uoaerg/$pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir"/$pkgname-$pkgver +builddir="$srcdir/$pkgname-$pkgver" prepare() { + default_prepare || return 1 + cd "$builddir" update_config_sub || return 1 - sed -i '/^CFLAGS/d' configure.ac + sed -i '/^CFLAGS/d' configure.ac || return 1 autoreconf -fi || return 1 } @@ -36,7 +38,11 @@ build() { package() { cd "$builddir" - make DESTDIR=$pkgdir install || return 1 + + make DESTDIR="$pkgdir" install || return 1 + + mkdir -p "$pkgdir"/usr/share/doc + mv "$pkgdir"/usr/share/$pkgname "$pkgdir"/usr/share/doc/ } md5sums="816b65577ecf1d2964dee37381901296 wavemon-0.8.0.tar.gz" |