mirror of
https://github.com/archlinux/aur.git
synced 2026-02-09 14:34:42 +01:00
v21.1.8.2-2
This commit is contained in:
parent
5ebe2a190a
commit
dc40cafeaf
2 changed files with 11 additions and 14 deletions
6
.SRCINFO
6
.SRCINFO
|
|
@ -1,7 +1,7 @@
|
|||
pkgbase = clangsharp-pinvoke-generator
|
||||
pkgdesc = A tool that takes a C/C++ header files as input and generates C# interop code
|
||||
pkgver = 21.1.8.2
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://github.com/dotnet/ClangSharp
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
|
|
@ -12,9 +12,9 @@ pkgbase = clangsharp-pinvoke-generator
|
|||
depends = llvm-libs
|
||||
depends = clang
|
||||
options = !strip
|
||||
source = clangsharp-pinvoke-generator-20.1.8.2.tar.gz::https://github.com/dotnet/ClangSharp/archive/refs/tags/v20.1.8.2.tar.gz
|
||||
source = clangsharp-pinvoke-generator-21.1.8.2.tar.gz::https://github.com/dotnet/ClangSharp/archive/refs/tags/v21.1.8.2.tar.gz
|
||||
source = 002-arch-clang-cpp-libs.patch
|
||||
sha256sums = ba5660953df2d6c74e18d7d9443de0befaddc567ed848d3156d74ee4f4514c74
|
||||
sha256sums = 52f354478790ef35323137bbf5342c4a89578305d91c147bd7e2fbe391ae7e14
|
||||
sha256sums = 816216493ca272ec115f0972088d07f0cd5f3ee930df9313a3e54dbdee934381
|
||||
|
||||
pkgname = clangsharp-pinvoke-generator
|
||||
|
|
|
|||
19
PKGBUILD
19
PKGBUILD
|
|
@ -2,11 +2,8 @@
|
|||
# Maintainer: ThePuzzlemaker <tpzker at thepuzzlemaker dot info>
|
||||
_dotnet_version=10.0
|
||||
pkgname=clangsharp-pinvoke-generator
|
||||
# Unknown why the versions don't line up here. v20 tag has v21 code and is labelled v21 internally.
|
||||
# See https://github.com/dotnet/ClangSharp/issues/685
|
||||
pkgver=21.1.8.2
|
||||
_tagver=20.1.8.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="A tool that takes a C/C++ header files as input and generates C# interop code"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/dotnet/ClangSharp"
|
||||
|
|
@ -20,15 +17,15 @@ depends=(
|
|||
)
|
||||
makedepends=("dotnet-sdk-${_dotnet_version}" 'cmake')
|
||||
source=(
|
||||
"${pkgname}-${_tagver}.tar.gz::https://github.com/dotnet/ClangSharp/archive/refs/tags/v${_tagver}.tar.gz"
|
||||
"${pkgname}-${pkgver}.tar.gz::https://github.com/dotnet/ClangSharp/archive/refs/tags/v${pkgver}.tar.gz"
|
||||
"002-arch-clang-cpp-libs.patch"
|
||||
)
|
||||
sha256sums=('ba5660953df2d6c74e18d7d9443de0befaddc567ed848d3156d74ee4f4514c74'
|
||||
sha256sums=('52f354478790ef35323137bbf5342c4a89578305d91c147bd7e2fbe391ae7e14'
|
||||
'816216493ca272ec115f0972088d07f0cd5f3ee930df9313a3e54dbdee934381')
|
||||
_libver=21.1.8
|
||||
|
||||
prepare() {
|
||||
cd ClangSharp-${_tagver}
|
||||
cd ClangSharp-${pkgver}
|
||||
|
||||
# Arch packs all clang libraries as libclang-cpp.so
|
||||
patch -Np1 -i "../002-arch-clang-cpp-libs.patch"
|
||||
|
|
@ -37,14 +34,14 @@ prepare() {
|
|||
build() {
|
||||
local cmake_options=(
|
||||
-B cmake_build
|
||||
-S ClangSharp-${_tagver}
|
||||
-S ClangSharp-${pkgver}
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
)
|
||||
|
||||
cmake "${cmake_options[@]}"
|
||||
cmake --build cmake_build
|
||||
dotnet publish \
|
||||
ClangSharp-${_tagver}/sources/ClangSharpPInvokeGenerator/ClangSharpPInvokeGenerator.csproj \
|
||||
ClangSharp-${pkgver}/sources/ClangSharpPInvokeGenerator/ClangSharpPInvokeGenerator.csproj \
|
||||
--runtime linux-x64 \
|
||||
--sc \
|
||||
-o "${srcdir}/build" \
|
||||
|
|
@ -60,13 +57,13 @@ build() {
|
|||
}
|
||||
|
||||
check() {
|
||||
dotnet test ./ClangSharp-${_tagver}/ClangSharp.slnx -c Release -f net${_dotnet_version} --no-build
|
||||
dotnet test ./ClangSharp-${pkgver}/ClangSharp.slnx -c Release -f net${_dotnet_version} --no-build
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 "${srcdir}/build/ClangSharpPInvokeGenerator" "${pkgdir}/usr/bin/ClangSharpPInvokeGenerator"
|
||||
ln -s "ClangSharpPInvokeGenerator" "${pkgdir}/usr/bin/clangsharp-pinvoke-generator"
|
||||
install -Dm644 "${srcdir}/ClangSharp-${_tagver}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
|
||||
install -Dm644 "${srcdir}/ClangSharp-${pkgver}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
|
||||
install -Dm644 "${srcdir}/cmake_build/lib/libClangSharp.so.${_libver}" "${pkgdir}/usr/lib/libClangSharp.so.${_libver}"
|
||||
ln -s "libClangSharp.so.${_libver}" "${pkgdir}/usr/lib/libClangSharp.so"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue