Initial commit
Some checks failed
gitea/pkg-xrock/pipeline/head There was a failure building this commit
Some checks failed
gitea/pkg-xrock/pipeline/head There was a failure building this commit
This commit is contained in:
commit
b1d857c283
18
.SRCINFO
Normal file
18
.SRCINFO
Normal file
@ -0,0 +1,18 @@
|
||||
pkgbase = xrock-git
|
||||
pkgdesc = The low level tools for rockchip SOC with maskrom and loader mode support.
|
||||
pkgver = 1.0.4.r5.gbb62b28
|
||||
pkgrel = 11
|
||||
url = https://github.com/xboot/xrock
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
arch = riscv64
|
||||
license = MIT
|
||||
makedepends = git
|
||||
makedepends = gcc
|
||||
depends = libusb
|
||||
provides = xrock
|
||||
conflicts = xrock
|
||||
source = xrock::git+https://github.com/xboot/xrock.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = xrock-git
|
53
.gitignore
vendored
Normal file
53
.gitignore
vendored
Normal 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
|
||||
/xrock
|
44
Jenkinsfile
vendored
Normal file
44
Jenkinsfile
vendored
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
38
PKGBUILD
Normal file
38
PKGBUILD
Normal file
@ -0,0 +1,38 @@
|
||||
# Maintainer: taotieren <admin@taotieren.com>
|
||||
# Maintainer: BigfootACA <bigfoot@classfun.cn>
|
||||
|
||||
pkgname=xrock
|
||||
pkgver=1.0.4.r5.gbb62b28
|
||||
pkgrel=11
|
||||
epoch=
|
||||
pkgdesc="The low level tools for rockchip SOC with maskrom and loader mode support."
|
||||
arch=(x86_64 aarch64 armv7 riscv64)
|
||||
url="https://github.com/xboot/xrock"
|
||||
license=('MIT')
|
||||
depends=('libusb')
|
||||
makedepends=('git' 'gcc')
|
||||
optdepends=()
|
||||
provides=(${pkgname%-git})
|
||||
conflicts=(${pkgname%-git})
|
||||
source=("${pkgname%-git}::git+${url}.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver(){
|
||||
cd "${srcdir}/${pkgname%-git}"
|
||||
git describe --long --tags | sed 's/^v//g' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
prepare(){
|
||||
git -C "${srcdir}/${pkgname%-git}" clean -dfx
|
||||
}
|
||||
|
||||
build(){
|
||||
cd "${srcdir}/${pkgname%-git}"
|
||||
make
|
||||
}
|
||||
|
||||
package(){
|
||||
install -Dm0755 "${srcdir}/${pkgname%-git}/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
|
||||
install -Dm0644 "${srcdir}/${pkgname%-git}/99-xrock.rules" "${pkgdir}/etc/udev/rules.d/99-xrock.rules"
|
||||
install -Dm0644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
Loading…
Reference in New Issue
Block a user