jobcore/iproute2/PKGBUILD

73 lines
2.3 KiB
Bash
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=iproute2
2022-08-07 13:17:14 +02:00
pkgver=5.19.0
2022-05-28 00:12:51 +02:00
pkgrel=01
2022-03-20 13:19:37 +01:00
pkgdesc='IP Routing Utilities'
arch=('x86_64')
url='https://git.kernel.org/pub/scm/network/iproute2/iproute2.git'
depends=('glibc' 'iptables' 'libelf' 'libbpf')
2022-03-20 13:19:37 +01:00
optdepends=('db: userspace arp daemon'
'libcap: tipc'
'linux-atm: ATM support')
provides=('iproute')
backup=('etc/iproute2/bpf_pinning'
'etc/iproute2/ematch_map'
'etc/iproute2/group'
'etc/iproute2/nl_protos'
'etc/iproute2/rt_dsfield'
'etc/iproute2/rt_protos'
'etc/iproute2/rt_realms'
'etc/iproute2/rt_scopes'
'etc/iproute2/rt_tables')
2022-03-20 13:19:37 +01:00
makedepends=('linux-atm' 'bison' 'gettext')
#options=('staticlibs' 'debug') ## uncomment this and comment the following to have the debug pkg produced
2022-03-20 13:19:37 +01:00
options=('staticlibs')
source=("https://www.kernel.org/pub/linux/utils/net/${pkgname}/${pkgname}-${pkgver}.tar."{xz,sign}
'0001-make-iproute2-fhs-compliant.patch')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
# set correct fhs structure
patch -Np1 -i "${srcdir}"/0001-make-iproute2-fhs-compliant.patch
# do not treat warnings as errors
sed -i 's/-Werror//' Makefile
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export CFLAGS+=' -ffat-lto-objects'
./configure
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" SBINDIR="/usr/bin" install
# libnetlink isn't installed, install it FS#19385
install -Dm0644 include/libnetlink.h "${pkgdir}/usr/include/libnetlink.h"
install -Dm0644 lib/libnetlink.a "${pkgdir}/usr/lib/libnetlink.a"
}
#---- license gpg-key sha256sums ----
license=('GPL2')
validpgpkeys=('9F6FC345B05BE7E766B83C8F80A77F6095CDE47E') # Stephen Hemminger
2022-08-07 13:17:14 +02:00
sha256sums=(26b7a34d6a7fd2f7a42e2b39c5a90cb61bac522d1096067ffeb195e5693d7791 # iproute2-5.19.0.tar.xz
6a25f5d6c2b0d099adce2722e2f891cc0d12347a14950d251c9be158d10aedce # iproute2-5.19.0.tar.sign
2022-03-23 03:56:45 +01:00
758b82bd61ed7512d215efafd5fab5ae7a28fbfa6161b85e2ce7373285e56a5d) # 0001-make-iproute2-fhs-compliant.patch
# 837a64189b949afae951655546967cc8f17f2f2cf370faabff00575364f0fcf7) # 0002-iproute2.patch