35 lines
765 B
Bash
35 lines
765 B
Bash
|
pkgname=rkdeveloptool
|
||
|
pkgver=70
|
||
|
pkgrel=1
|
||
|
pkgdesc='Development tool for Rockchip SOC'
|
||
|
arch=('x86_64')
|
||
|
url='https://git.ignuranza.net/andreacavalli/rkdeveloptool.git'
|
||
|
license=('GPL2')
|
||
|
makedepends=('autoconf'
|
||
|
'git')
|
||
|
depends=('libusb')
|
||
|
source=('git+https://git.ignuranza.net/andreacavalli/rkdeveloptool.git')
|
||
|
sha256sums=('SKIP')
|
||
|
|
||
|
install=$pkgname.install
|
||
|
|
||
|
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 --disable-werror
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$srcdir/$pkgname"
|
||
|
make DESTDIR=$pkgdir install
|
||
|
mkdir -p "$pkgdir/etc/udev/rules.d/"
|
||
|
install -m644 99-rk-rockusb.rules "$pkgdir/etc/udev/rules.d/"
|
||
|
}
|