blob: fca8617b982d7ef107fb8dd20447d6a3401090b3 (
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
|
# Maintainer: Alexandre Bouvier <contact@amb.tf>
_pkgname=ndecrypt
pkgname=$_pkgname-git
pkgver=0.2.5.r20.g450f6fb
pkgrel=1
pkgdesc="DS/3DS Encryption Tool"
arch=('x86_64')
url="https://github.com/SabreTools/NDecrypt"
license=('MIT')
depends=('dotnet-runtime-8.0' 'gcc-libs' 'glibc')
makedepends=('dotnet-sdk>=8' 'git')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url.git")
b2sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --long --tags --exclude=rolling | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
export DOTNET_CLI_TELEMETRY_OPTOUT=true
export DOTNET_NOLOGO=true
dotnet publish $_pkgname/NDecrypt \
--configuration Release \
--framework net8.0 \
--output build \
--runtime linux-x64 \
--self-contained false
}
package() {
# shellcheck disable=SC2154
install -d "$pkgdir"/usr/{bin,lib}
cp -dr --no-preserve=ownership build "$pkgdir"/usr/lib/$_pkgname
ln -s -t "$pkgdir"/usr/bin ../lib/$_pkgname/NDecrypt
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname $_pkgname/LICENSE
}
|