Initial commit

This commit is contained in:
BigfootACA 2023-12-14 15:14:38 +08:00
commit db84fbbcb6
4 changed files with 141 additions and 0 deletions

12
.SRCINFO Normal file
View File

@ -0,0 +1,12 @@
pkgbase = pil-squasher
pkgdesc = Convert split mdt + b%02d files into mbn file
pkgver = r9.8ac2d5c
pkgrel = 1
url = https://github.com/andersson/pil-squasher
arch = aarch64
license = BSD
depends = glibc
source = git+https://github.com/andersson/pil-squasher
sha256sums = SKIP
pkgname = pil-squasher

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
/pil-squasher

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 --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
}
}
}
}

32
PKGBUILD Normal file
View File

@ -0,0 +1,32 @@
# Maintainer: Egor Vorontsov <sdoregor@sdore.me>
# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname=pil-squasher
pkgver=r9.8ac2d5c
pkgrel=1
pkgdesc="Convert split mdt + b%02d files into mbn file"
arch=("aarch64")
url="https://github.com/andersson/pil-squasher"
depends=(glibc)
license=('BSD')
source=("git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${srcdir}/${pkgname}"
make prefix='/usr'
}
package() {
cd "${srcdir}/${pkgname}"
make prefix='/usr' DESTDIR="${pkgdir}" install
}