diff options
-rw-r--r-- | main/net-tools/APKBUILD | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/main/net-tools/APKBUILD b/main/net-tools/APKBUILD index a17a603f52..69ef84eead 100644 --- a/main/net-tools/APKBUILD +++ b/main/net-tools/APKBUILD @@ -2,7 +2,7 @@ pkgname=net-tools pkgver=1.60_git20140218 _ver=${pkgver%_git*} -pkgrel=0 +pkgrel=1 pkgdesc="Linux networking base tools" url="https://sourceforge.net/projects/net-tools/" arch="all" @@ -17,10 +17,10 @@ source="https://downloads.sourceforge.net/project/net-tools/net-tools-$_ver.tar. musl-fixes.patch " -_builddir="$srcdir"/net-tools-$_ver +builddir="$srcdir"/net-tools-$_ver prepare() { local i - cd "$_builddir" + cd "$builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; @@ -70,17 +70,18 @@ EOF } build() { - cd "$_builddir" + cd "$builddir" make || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } mii_tool() { pkgdesc="media-independent interface (MII) tool" + depends= mkdir -p "$subpkgdir"/sbin mv "$pkgdir"/sbin/mii-tool "$subpkgdir"/sbin/ } |