pkg-rkdeveloptool/PKGBUILD
BigfootACA 8153acfe8a
Some checks failed
gitea/pkg-rkdeveloptool/pipeline/head There was a failure building this commit
Initial commit
2024-03-13 10:04:02 +08:00

34 lines
773 B
Bash

# Maintainer: crab2313 <crab2313@gmail.com>
# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname=rkdeveloptool
pkgver=69
pkgrel=1
pkgdesc='Development tool for Rockchip SOC'
arch=('x86_64' 'aarch64' 'armv7')
url='https://github.com/rockchip-linux/rkdeveloptool'
license=('GPL2')
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 --disable-werror
make
}
package(){
cd "$srcdir/$pkgname"
make DESTDIR=$pkgdir install
install -Dm644 99-rk-rockusb.rules -t "$pkgdir/usr/lib/udev/rules.d/"
}