diff options
author | Aerocatia | 2023-02-04 02:51:21 +1300 |
---|---|---|
committer | Aerocatia | 2023-02-04 02:51:21 +1300 |
commit | 0ba77ce3f97e62d1c146a27ea8257f51bd4e4799 (patch) | |
tree | 211c0a88e4a99ab58b326dcb96f1975223e3d6d7 | |
download | aur-0ba77ce3f97e62d1c146a27ea8257f51bd4e4799.tar.gz |
Package mingw-w64-directxmath
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d20c8e38b47e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = mingw-w64-directxmath + pkgdesc = All inline SIMD C++ linear algebra library for use in games and graphics apps (mingw-w64) + pkgver = dec2022 + pkgrel = 1 + url = https://go.microsoft.com/fwlink/?LinkID=615560 + arch = any + license = MIT + makedepends = mingw-w64-cmake + makedepends = ninja + options = staticlibs + options = !strip + options = !buildflags + source = directxmath-dec2022.tar.gz::https://github.com/microsoft/DirectXMath/archive/refs/tags/dec2022.tar.gz + sha256sums = 70a18f35343ff07084d31afa7a7978b3b59160f0533424365451c72475ff480f + +pkgname = mingw-w64-directxmath diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4f673b375766 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +pkgname=mingw-w64-directxmath +pkgdesc="All inline SIMD C++ linear algebra library for use in games and graphics apps (mingw-w64)" +pkgver=dec2022 +pkgrel=1 +arch=('any') +makedepends=('mingw-w64-cmake') +url="https://go.microsoft.com/fwlink/?LinkID=615560" +license=('MIT') +options=('staticlibs' '!strip' '!buildflags') +source=(directxmath-${pkgver}.tar.gz::https://github.com/microsoft/DirectXMath/archive/refs/tags/${pkgver}.tar.gz) +sha256sums=('70a18f35343ff07084d31afa7a7978b3b59160f0533424365451c72475ff480f') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + for _arch in ${_architectures}; do + ${_arch}-cmake -S DirectXMath-$pkgver -B build/${_arch} + cmake --build build/${_arch} + done +} + +package() { + for _arch in ${_architectures}; do + DESTDIR="${pkgdir}" cmake --install build/${_arch} + done +} |