Initial commit
Some checks failed
gitea/pkg-mmc-utils/pipeline/head There was a failure building this commit
Some checks failed
gitea/pkg-mmc-utils/pipeline/head There was a failure building this commit
This commit is contained in:
commit
cf239603bb
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
@ -0,0 +1,19 @@
|
||||
pkgbase = mmc-utils
|
||||
pkgdesc = Userspace tools for MMC/SD devices
|
||||
pkgver = r113.9582278
|
||||
pkgrel = 1
|
||||
epoch = 1
|
||||
url = https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
|
||||
arch = x86_64
|
||||
arch = i686
|
||||
arch = aarch64
|
||||
arch = armv7h
|
||||
arch = armv6h
|
||||
license = GPL
|
||||
makedepends = git
|
||||
provides = mmc-utils
|
||||
conflicts = mmc-utils
|
||||
source = git+https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = mmc-utils
|
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
|
||||
/mmc-utils
|
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 --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
33
PKGBUILD
Normal file
@ -0,0 +1,33 @@
|
||||
# Maintainer: BigfootACA <bigfoot@classfun.cn>
|
||||
# Maintainer: Leonidas P. <jpegxguy at outlook dot com>
|
||||
# Contributor: Vincent Bernardoff <vb AT luminar.eu.org>
|
||||
|
||||
pkgname=mmc-utils
|
||||
pkgver=r113.9582278
|
||||
pkgrel=1
|
||||
epoch=1
|
||||
pkgdesc="Userspace tools for MMC/SD devices"
|
||||
arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h')
|
||||
url="https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git"
|
||||
license=('GPL')
|
||||
makedepends=('git')
|
||||
provides=("${pkgname}")
|
||||
conflicts=("${pkgname}")
|
||||
source=('git+https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git')
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${pkgname}"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${pkgname}"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${pkgname}"
|
||||
make DESTDIR="${pkgdir}" prefix=/usr install
|
||||
install -Dm644 man/mmc.1 "${pkgdir}/usr/share/man/man1/mmc.1"
|
||||
}
|
Loading…
Reference in New Issue
Block a user