summaryrefslogtreecommitdiff
path: root/system/net-tools/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-21 01:07:10 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-21 01:07:10 +0000
commit70d3beb6d20bd159cacaa9ba99e8f06f2761d959 (patch)
treec85c9aef04d4167e80837d5c11a3cb6098976edb /system/net-tools/APKBUILD
parentf41ef48c4f451513041fbfb678652eddb1eee469 (diff)
downloadpackages-70d3beb6d20bd159cacaa9ba99e8f06f2761d959.tar.gz
packages-70d3beb6d20bd159cacaa9ba99e8f06f2761d959.tar.bz2
packages-70d3beb6d20bd159cacaa9ba99e8f06f2761d959.tar.xz
packages-70d3beb6d20bd159cacaa9ba99e8f06f2761d959.zip
system/n*: modernise, fix metadata
Diffstat (limited to 'system/net-tools/APKBUILD')
-rw-r--r--system/net-tools/APKBUILD12
1 files changed, 4 insertions, 8 deletions
diff --git a/system/net-tools/APKBUILD b/system/net-tools/APKBUILD
index cb4f91add..cb33d5c48 100644
--- a/system/net-tools/APKBUILD
+++ b/system/net-tools/APKBUILD
@@ -7,21 +7,19 @@ pkgrel=3
pkgdesc="Linux networking base tools"
url="https://sourceforge.net/projects/net-tools/"
arch="all"
+options="!check" # there is no testsuite for this package
license="GPL-2.0+"
depends="mii-tool"
depends_dev=""
makedepends="$depends_dev bash linux-headers"
-options="!check" # there is no testsuite for this package
-install=""
subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg mii-tool:mii_tool"
source="https://downloads.sourceforge.net/project/$pkgname/$pkgname-$_ver.tar.bz2
git.patch
musl-fixes.patch
"
-
builddir="$srcdir"/$pkgname-$_ver
+
prepare() {
- cd "$builddir"
default_prepare
cat > config.make <<EOF
I18N=1
@@ -67,18 +65,16 @@ EOF
}
build() {
- cd "$builddir"
make
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
}
mii_tool() {
- pkgdesc="media-independent interface (MII) tool"
- depends=
+ pkgdesc="Media-Independent Interface (MII) tool"
+ depends=""
mkdir -p "$subpkgdir"/sbin
mv "$pkgdir"/sbin/mii-tool "$subpkgdir"/sbin/
}