Initial commit
Some checks failed
gitea/pkg-rkdeveloptool/pipeline/head There was a failure building this commit

This commit is contained in:
BigfootACA 2024-03-13 10:04:02 +08:00
commit 8153acfe8a
4 changed files with 145 additions and 0 deletions

15
.SRCINFO Normal file
View File

@ -0,0 +1,15 @@
pkgbase = rkdeveloptool
pkgdesc = Development tool for Rockchip SOC
pkgver = 69
pkgrel = 1
url = https://github.com/rockchip-linux/rkdeveloptool
arch = x86_64
arch = aarch64
arch = armv7
license = GPL2
makedepends = git
depends = libusb
source = git+https://github.com/rockchip-linux/rkdeveloptool.git
sha256sums = SKIP
pkgname = rkdeveloptool

53
.gitignore vendored Normal file
View File

@ -0,0 +1,53 @@
*.rej
*.orig
*.swp
*.save*
*.o
*.a
*.out
*.lib
*.obj
*.dll
*.so
*.exe
*.gch
*.plist
*.mo
*.gmo
*.fd
*.iso
*.img
*.img.*
*.qcow2
*.vhd
*.vdi
*.vmdk
*.cpio
*.cpio.*
*.ttf
*.ttc
*.pcf
*.pcf.*
*.efi
*.pkg.tar.*
vgcore.*
/build*
initramfs*.*
initrd*.*
System.map*
/cmake-build-*
/.idea
/.vscode
/.cache
CMakeCache.txt
CMakeFiles
Makefile
cmake_install.cmake
node_modules
package.json
package-lock.json
fonts.scale
fonts.dir
/src
/pkg
/rkdeveloptool

44
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,44 @@
pipeline {
agent {
label 'aarch64 && archlinux'
}
stages {
stage('Download Config') {
steps {
dir('jenkins-utils') {
git 'https://gitlab.classfun.cn:4443/renegade-project/jenkins-utils'
}
}
}
stage('Cleanup packages') {
steps {
sh 'rm -f *.pkg.tar.*'
}
}
stage('Build') {
steps {
sh 'makepkg --config jenkins-utils/makepkg-aarch64.conf --syncdeps --noconfirm --force'
}
}
stage('Signature packages') {
steps {
withCredentials([
file(credentialsId: 'gpg-file', variable: 'GPG_FILE'),
string(credentialsId: 'gpg-secret', variable: 'GPG_SECRET')
]) {
sh 'python3 jenkins-utils/sign-pkg.py -d . -k "$GPG_FILE" -p "$GPG_SECRET"'
}
}
}
stage('Upload packages') {
steps {
sh 'python3 jenkins-utils/upload-pkg.py -d . -a aarch64'
}
}
stage('Archive') {
steps {
archiveArtifacts artifacts: '*.pkg.tar.*', fingerprint: true
}
}
}
}

33
PKGBUILD Normal file
View File

@ -0,0 +1,33 @@
# 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/"
}