blob: 275faaa95fabac06289b204537b4d8b9226ce43a (
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
|
# Maintainer: Cryolitia PukNgae <cryolitia@archlinuxcn.org>
pkgname=edl-ng
pkgver=1.6.0
pkgrel=2
pkgdesc="A modern, user-friendly tool for interacting with Qualcomm devices in Emergency Download (EDL) mode."
arch=('x86_64')
url="https://github.com/strongtz/edl-ng"
license=( 'MIT' )
depends=(glibc libusb)
makedepends=(git dotnet-sdk-9.0)
source=("$pkgname::git+$url#tag=v$pkgver")
sha512sums=('106f02092ca6fb4640e397e8c549de8fb9f77fdf467340640427f790350374fcb18808a36f1e654242db33304484dc6823199c4f807e4848ed0479a31e6a20f3')
b2sums=('591680fd439c4292c3efe222c39412541a6c2644e3a33073b3e4dc317ed6b8b2d79dd20bf5ae529fa224bef8973f535c61aeb9ccdebab48d3041c13a4abcdad0')
prepare() {
cd "$pkgname"
sed -i "/Microsoft.CodeAnalysis.CSharp/{s/4.14.0/4.12.0/}" QCEDL.Analyzer/QCEDL.Analyzer.csproj
}
build(){
cd "$pkgname"
# disable dotnet telemetry
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
export DOTNET_NOLOGO=1
dotnet \
publish \
QCEDL.CLI \
--configuration Release \
--output builddir \
--os linux \
-p:DebugSymbols=false \
-p:DebugType=none
}
package() {
cd "$pkgname"
# install binaries
install -vd "$pkgdir/usr/"{lib,bin}
cp -r builddir "$pkgdir/usr/lib/$pkgname"
ln -sf /usr/lib/edl-ng/edl-ng "$pkgdir/usr/bin/edl-ng"
install -Dvm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
# ensure binaries have correct permissions
chmod 755 "$pkgdir/usr/lib/$pkgname/edl-ng"
}
|