diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e282b6a6718f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = dpdk + pkgdesc = A set of tools and libraries for writing high performance, scalable, user-mode storage applications + pkgver = 2.2.0.rc1 + pkgrel = 1 + url = https://01.org/spdk + arch = x86_64 + arch = i686 + license = BSD + makedepends = linux-headers + makedepends = libpcap + options = staticlibs + source = http://dpdk.org/browse/dpdk/snapshot/dpdk-2.2.0-rc1.tar.gz + md5sums = d17494e540005d7b7178cf6273ff9c72 + +pkgname = dpdk + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..486784eba005 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +pkgname=dpdk +pkgver=2.2.0.rc1 +_tag=2.2.0-rc1 +pkgrel=1 +pkgdesc='A set of tools and libraries for writing high performance, scalable, user-mode storage applications' +arch=(x86_64 i686) +url='https://01.org/spdk' +license=(BSD) +options=(staticlibs) +depends=() +makedepends=(linux-headers libpcap) +checkdepends=() +source=(http://dpdk.org/browse/dpdk/snapshot/dpdk-$_tag.tar.gz) +md5sums=('d17494e540005d7b7178cf6273ff9c72') + +prepare() { + cd dpdk-$_tag + make config T=x86_64-native-linuxapp-gcc + sed -ri 's,(PMD_PCAP=).*,\1y,' build/.config + sed 's|\bpython\b|python2|' -i mk/rte.sdktest.mk +} + +build() { + cd dpdk-$_tag + make T=x86_64-native-linuxapp-gcc +} + +check() { + cd dpdk-$_tag + # tests fail + # make test T=x86_64-native-linuxapp-gcc +} + +package() { + cd dpdk-$_tag + make T=x86_64-native-linuxapp-gcc DESTDIR="$pkgdir/opt/$pkgname" install +} |