blob: 53550b0994baca65d80d0860de1c0f31501ff202 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=airisp-git
pkgver=1.2.8.0.r1.geebb818
pkgrel=12
epoch=
pkgdesc="An ISP tool for Air MCU"
arch=("x86_64" "aarch64")
url="https://github.com/Air-duino/AirISP"
license=('MIT')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
replaces=()
depends=()
makedepends=(git
dotnet-host
dotnet-sdk)
backup=()
options=('!strip')
install=
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
noextract=()
pkgver(){
cd "${srcdir}/${pkgname}"
git describe --long --tags | sed 's/^[vV]//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare()
{
git -C "${srcdir}/${pkgname}" clean -dfx
}
build() {
# DOTNET_CLI_TELEMETRY_OPTOUT=1
cd "${srcdir}/${pkgname}"
# sed -i 's|net8.0|net7.0|g' AirISP/AirISP.csproj
if [ "$CARCH" == "aarch64" ]; then
msg2 "build for arm64"
dotnet publish AirISP -r linux-arm64 -c Release -p:PublishSingleFile=true --self-contained true -p:DebugType=None -p:DebugSymbols=false -o artifact
else
msg2 "build for x64"
dotnet publish AirISP -r linux-x64 -c Release -p:PublishSingleFile=true --self-contained true -p:DebugType=None -p:DebugSymbols=false -o artifact
fi
}
package() {
cd "${srcdir}/${pkgname}/artifact/"
install -Dm0755 AirISP "${pkgdir}/usr/bin/${pkgname%-git}"
install -Dm644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|