blob: 02c1670ffa1be2319b531888196c79cbbb85dd20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Martin Chang <marty188586 at gmail dot com>
pkgname=restool
pkgver=18.06
pkgrel=0
pkgdesc="An user space application providing the ability to dynamically create and manage NXP DPAA2 containers and objects from Linux."
arch=('aarch64' 'armv7h' 'armv6h')
url="https://github.com/qoriq-open-source/restool"
license=('GPL')
depends=()
makedepends=(git make gcc)
provides=(restool)
source=("git+https://github.com/qoriq-open-source/restool.git")
sha1sums=('SKIP')
build() {
cd "$srcdir/$pkgname"
# Patch the code to compile properly
find -type f -name '*.c' | xargs sed -i 's/^enum mc_cmd_status mc_status;/static enum mc_cmd_status mc_status;/'
sed -i '/-Werror \\/d' Makefile
make
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir/" prefix="/usr/" install
}
|