commit 565037e030cb1447b808611967706a6a8081a999 Author: BigfootACA Date: Thu Dec 14 15:14:38 2023 +0800 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..75e98b3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = qmic + pkgdesc = QMI IDL compiler + pkgver = 1.0.r0.g4574736 + pkgrel = 1 + url = https://github.com/andersson/qmic + arch = aarch64 + license = BSD + makedepends = git + depends = glibc + source = git+https://github.com/andersson/qmic + md5sums = SKIP + +pkgname = qmic diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..49beffb --- /dev/null +++ b/.gitignore @@ -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 +/qmic diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..a2105e7 --- /dev/null +++ b/Jenkinsfile @@ -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 + } + } + } +} diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f382aaa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Luca Weiss +# Maintainer: BigfootACA + +pkgname=qmic +pkgver=1.0.r0.g4574736 +pkgrel=1 +pkgdesc="QMI IDL compiler" +arch=("aarch64") +url="https://github.com/andersson/qmic" +license=(BSD) +makedepends=(git) +depends=(glibc) +source=("git+https://github.com/andersson/qmic") +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$pkgname" + make +} + +package() { + cd "$pkgname" + make DESTDIR="$pkgdir/" prefix=/usr install + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}