diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-06-08 12:36:59 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-06-08 12:47:08 +0200 |
commit | 6dace86cbcb519336551bb4b903bc8aa4b67bb57 (patch) | |
tree | 71449e13e065de703d549b88760616bce22e869b /main/iproute2/APKBUILD | |
parent | 68ec1ef4e1a065a84b30c98516abf55729deff81 (diff) | |
download | aports-6dace86cbcb519336551bb4b903bc8aa4b67bb57.tar.bz2 aports-6dace86cbcb519336551bb4b903bc8aa4b67bb57.tar.xz |
main/iproute2: upgrade to 4.6.0
Diffstat (limited to 'main/iproute2/APKBUILD')
-rw-r--r-- | main/iproute2/APKBUILD | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/main/iproute2/APKBUILD b/main/iproute2/APKBUILD index ad29438e0c..8a8ce7399a 100644 --- a/main/iproute2/APKBUILD +++ b/main/iproute2/APKBUILD @@ -1,6 +1,6 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=iproute2 -pkgver=4.4.0 +pkgver=4.6.0 _realver=$pkgver pkgrel=1 pkgdesc="IP Routing Utilities" @@ -10,12 +10,13 @@ license="GPL2" depends= install="$pkgname.post-install" makedepends="bison flex bash iptables-dev" -subpackages="$pkgname-doc" +subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp" source="http://kernel.org/pub/linux/utils/net/iproute2/iproute2-$pkgver.tar.xz musl-fixes.patch" +_builddir="$srcdir"/$pkgname-$_realver prepare() { - cd "$srcdir"/$pkgname-$_realver + cd "$_builddir" local i for i in $source; do case $i in @@ -30,27 +31,39 @@ prepare() { } build() { - cd "$srcdir"/$pkgname-$_realver + cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 make CCOPTS="-D_GNU_SOURCE $CFLAGS" LIBDIR=/lib || return 1 } package() { - cd "$srcdir"/$pkgname-$_realver - make -j1 DESTDIR="$pkgdir" install + cd "$_builddir" + make -j1 DESTDIR="$pkgdir" install || return 1 } -md5sums="d762653ec3e1ab0d4a9689e169ca184f iproute2-4.4.0.tar.xz -4940583731a0e941b6c0b87ee119a420 musl-fixes.patch" -sha256sums="bc91c367288a19f78ef800cd6840363be1f22da8436fbae88e1a7250490d6514 iproute2-4.4.0.tar.xz -ad4574e697bd2e61126172d19cc4561ab218a9c9bc8aa9cc16ce7e9ff77a9f73 musl-fixes.patch" -sha512sums="48236fc6103a55d977efa4f93ad7fdfc0944df975ce771d57fd3dcfb13b761b0c05dbe749978ac86c7a471d023bee62a2f1648a6ca75f50da9252acfde174b69 iproute2-4.4.0.tar.xz -7373b0e53a10961e7d405081182db65fb51ea80226c2a5e0088dcd9e83105953ce412be8e4a73ca6ed819a3ffa15a6e258ff6a76e511a9d4434a579d2338efaf musl-fixes.patch" +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + arch="noarch" + + mkdir -p "$subpkgdir"/usr/share/ + mv "$pkgdir"/usr/share/bash-completion \ + "$subpkgdir"/usr/share || return 1 + + rmdir -p "$pkgdir"/usr/share 2>/dev/null || true +} + +md5sums="d015e437e4f744d51d3a1a53341826d5 iproute2-4.6.0.tar.xz +9a957abdc5267f386e0a6fee6e59ee44 musl-fixes.patch" +sha256sums="74fc6a8ad085be095a159f8158bbaf385b42af9e101619f233f1ae466829d406 iproute2-4.6.0.tar.xz +73771a6cee68aef892eeb4c2f243931db69abaabd7b13d20f2eb62a8be2c0f9d musl-fixes.patch" +sha512sums="1e3868ced65012da6724744eb15e6bb8e2c5bf8d7a46cf2b655526de1a9e1224c7b7e9bd4a88e40516b5648955987eb9001600ca5afbd507bc664f92b51ede9f iproute2-4.6.0.tar.xz +2684a3b9ea8b32ebfbe7c329c01e4f1371ed1ecb6c0ed8c074677c1ba31be72f937c6850473c075b61ff41ca67d4d9f339501fefe7d1bd4118ba33663824647e musl-fixes.patch" |