pkg-rkdeveloptool/PKGBUILD

34 lines
778 B
Bash
Raw Normal View History

2024-03-13 10:04:02 +08:00
# Maintainer: crab2313 <crab2313@gmail.com>
# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname=rkdeveloptool
2024-09-18 21:23:33 +08:00
pkgver=69
2024-04-30 02:43:07 +08:00
pkgrel=2
2024-03-13 10:04:02 +08:00
pkgdesc='Development tool for Rockchip SOC'
arch=('x86_64' 'aarch64' 'armv7')
url='https://github.com/rockchip-linux/rkdeveloptool'
license=('GPL2')
makedepends=('git')
depends=('libusb')
2024-04-30 02:43:07 +08:00
source=('git+https://gitea.classfun.cn:4443/mirrors/rkdeveloptool.git')
2024-03-13 10:04:02 +08:00
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/"
}