pkg-directx-headers-git/PKGBUILD

41 lines
1.0 KiB
Bash
Raw Normal View History

2022-08-03 17:08:33 +08:00
# Maintainer: SovietReimu1228 <reimussr at protonmail dot ch>
pkgname=directx-headers-git
pkgdesc="DirectX headers for using D3D12"
pkgver=r203.48f2395
2022-08-03 17:08:33 +08:00
pkgrel=1
arch=('aarch64')
2023-04-22 22:28:41 +08:00
makedepends=('meson' 'git')
2022-08-03 17:08:33 +08:00
provides=('directx-headers')
conflicts=('directx-headers')
url="https://github.com/microsoft/DirectX-Headers"
license=('MIT')
2024-09-18 20:43:36 +08:00
source=('DirectX-Headers::git+https://gitea.classfun.cn:4443/mirrors/DirectX-Headers.git')
2022-08-03 17:08:33 +08:00
sha256sums=('SKIP')
pkgver() {
2023-04-22 22:28:41 +08:00
cd DirectX-Headers
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
2022-08-03 17:08:33 +08:00
}
build() {
2023-04-22 22:28:41 +08:00
meson setup DirectX-Headers build \
--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
meson configure --no-pager build
2022-08-03 17:08:33 +08:00
}
package() {
2023-04-22 22:28:41 +08:00
DESTDIR="$pkgdir" meson install -C build
2022-08-03 17:08:33 +08:00
2023-04-22 22:28:41 +08:00
install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" DirectX-Headers/LICENSE
2022-08-03 17:08:33 +08:00
}