aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-08-27 01:53:57 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-08-28 14:46:03 +0000
commit05e09b04c2ac624cdafa12447bb350c7e5f1ea56 (patch)
tree90b615cca1e3f4a572c28daecf7363331b990ddf /main
parent57c17a0f5c571c23718e068a466cff235d11914e (diff)
main/ifupdown: modernize
- use default_prepare - use SPDX license identifier - add run-parts to dependencies
Diffstat (limited to 'main')
-rw-r--r--main/ifupdown/APKBUILD26
1 files changed, 7 insertions, 19 deletions
diff --git a/main/ifupdown/APKBUILD b/main/ifupdown/APKBUILD
index 1f72e8e5bdf..935503dd8e5 100644
--- a/main/ifupdown/APKBUILD
+++ b/main/ifupdown/APKBUILD
@@ -2,13 +2,14 @@
# Maintainer:
pkgname=ifupdown
pkgver=0.8.35
-pkgrel=1
+pkgrel=2
pkgdesc="high level tools to configure network interfaces"
-url="http://packages.debian.org/ifupdown"
+url="https://packages.debian.org/ifupdown"
arch="all"
-license="GPL"
+license="GPL-2.0-or-later"
+depends="run-parts"
makedepends="perl"
-source="http://ftp.de.debian.org/debian/pool/main/i/$pkgname/${pkgname}_$pkgver.tar.xz
+source="http://ftp.de.debian.org/debian/pool/main/i/ifupdown/ifupdown_$pkgver.tar.xz
musl-macros-main.patch
musl-macros-archlinux.patch
makefile-arch.patch
@@ -17,27 +18,14 @@ source="http://ftp.de.debian.org/debian/pool/main/i/$pkgname/${pkgname}_$pkgver.
ifupdown-no-dpkg.patch"
provides="ifupdown-any"
provider_priority=100
-
builddir="$srcdir/$pkgname"
-prepare() {
- cd $builddir
- local i
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
build() {
- cd $builddir
- make || return 1
+ make
}
package() {
- cd $builddir
- make BASEDIR="$pkgdir" install || return 1
+ make BASEDIR="$pkgdir" install
}
sha512sums="ec18b9cc36914b27ee9cfd1d30dc6fbf356f9ca5a0e7af1eafe6318c22ab59f6e214869e47c61ca00389061a58fa46e4bf113423156b8b5ebf75308a3ad23153 ifupdown_0.8.35.tar.xz