blob: b13c307a4eebadc81f2c41a2d3b103df06d04f25 (
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
30
31
32
33
34
35
36
37
38
|
# Maintainer: yjun <jerrysteve1101 at gmail dot com>
# Contributor: crab2313 <crab2313@gmail.com>
pkgname=rkdeveloptool-git
_pkgname=${pkgname%-git}
pkgver=69
pkgrel=1
pkgdesc='The firmware upgrade tool for Rockchip SoC, consider to be a opensource version of upgrade_tool'
arch=('x86_64' 'armv7h' 'aarch64')
url='https://github.com/rockchip-linux/rkdeveloptool'
license=('GPL2')
provides=($_pkgname)
conflicts=($_pkgname)
makedepends=('git')
depends=('libusb')
source=('git+https://github.com/rockchip-linux/rkdeveloptool.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git rev-list --count HEAD
}
build() {
cd "$srcdir/$_pkgname"
sed -i 's/-Werror/-Werror -Wno-format-truncation/' Makefile.am
autoreconf -i
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR=$pkgdir install
install -Dm644 99-rk-rockusb.rules -t "$pkgdir/usr/lib/udev/rules.d/"
}
# vim: set sw=2 ts=2 noet:
|