Compare commits
10 Commits
eb66aa482e
...
64c678714b
Author | SHA1 | Date | |
---|---|---|---|
64c678714b | |||
|
3bedfc9832 | ||
|
8f68835e59 | ||
|
3534174c99 | ||
|
b3bf9653e8 | ||
|
dbae8a0ade | ||
|
33c22b9c51 | ||
|
9f9d1cf2fb | ||
|
702d20668c | ||
|
7073a384b5 |
5
.SRCINFO
5
.SRCINFO
@ -1,11 +1,12 @@
|
|||||||
pkgbase = directx-headers-git
|
pkgbase = directx-headers-git
|
||||||
pkgdesc = DirectX headers for using D3D12
|
pkgdesc = DirectX headers for using D3D12
|
||||||
pkgver = r164.e87eade
|
pkgver = r181.34c9866
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/microsoft/DirectX-Headers
|
url = https://github.com/microsoft/DirectX-Headers
|
||||||
arch = x86_64
|
arch = aarch64
|
||||||
license = MIT
|
license = MIT
|
||||||
makedepends = meson
|
makedepends = meson
|
||||||
|
makedepends = git
|
||||||
provides = directx-headers
|
provides = directx-headers
|
||||||
conflicts = directx-headers
|
conflicts = directx-headers
|
||||||
source = DirectX-Headers::git+https://github.com/microsoft/DirectX-Headers.git
|
source = DirectX-Headers::git+https://github.com/microsoft/DirectX-Headers.git
|
||||||
|
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 --noconfirm'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
30
PKGBUILD
30
PKGBUILD
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
pkgname=directx-headers-git
|
pkgname=directx-headers-git
|
||||||
pkgdesc="DirectX headers for using D3D12"
|
pkgdesc="DirectX headers for using D3D12"
|
||||||
pkgver=r164.e87eade
|
pkgver=r203.48f2395
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
arch=('x86_64')
|
arch=('aarch64')
|
||||||
makedepends=('meson')
|
makedepends=('meson' 'git')
|
||||||
provides=('directx-headers')
|
provides=('directx-headers')
|
||||||
conflicts=('directx-headers')
|
conflicts=('directx-headers')
|
||||||
url="https://github.com/microsoft/DirectX-Headers"
|
url="https://github.com/microsoft/DirectX-Headers"
|
||||||
@ -14,21 +14,27 @@ source=('DirectX-Headers::git+https://github.com/microsoft/DirectX-Headers.git')
|
|||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd DirectX-Headers
|
cd DirectX-Headers
|
||||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
# LTO breaks mesa...
|
meson setup DirectX-Headers build \
|
||||||
export CXXFLAGS="$CXXFLAGS -fno-lto"
|
--prefix /usr \
|
||||||
|
--libexecdir lib \
|
||||||
|
--sbindir bin \
|
||||||
|
--buildtype plain \
|
||||||
|
--auto-features enabled \
|
||||||
|
--wrap-mode nodownload \
|
||||||
|
-D b_lto=false \
|
||||||
|
-D b_pie=true \
|
||||||
|
-D build-test=false
|
||||||
|
|
||||||
arch-meson DirectX-Headers build \
|
meson configure --no-pager build
|
||||||
-Dbuild-test=false
|
|
||||||
ninja -C build
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
DESTDIR="$pkgdir" meson install -C build
|
DESTDIR="$pkgdir" meson install -C build
|
||||||
|
|
||||||
install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" DirectX-Headers/LICENSE
|
install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" DirectX-Headers/LICENSE
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user