blob: c2c140ea44c9c720d62273e0c01d70c264520e6a (
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: Jenrikku (JkKU)
pkgname=narc-cli
_reponame=NARC-CLI
pkgver=1.0.1
pkgrel=1
_narcsharpcommit=144c671
_narcsharpref=144c6713498262b60092cee513cb648a4fce6840
pkgdesc="A quick NARC cli app for reading, modifying and creating NARC files"
arch=('x86_64')
url="https://github.com/Jenrikku/NARC-CLI"
license=('BSD-3-Clause')
depends=('dotnet-runtime')
makedepends=('dotnet-sdk-9.0')
optdepends=()
options=('!strip')
source=("$_reponame-$pkgver.tar.gz::https://github.com/Jenrikku/NARC-CLI/archive/refs/tags/$pkgver.tar.gz"
"NARCSharp-$_narcsharpref.tar.gz::https://api.github.com/repos/Jenrikku/NARCSharp/tarball/$_narcsharpref")
sha256sums=('7b3f7aea240a1b9276526cd430f3ef0cc1faea6bb94f49c0d7d907fd3e99331f'
'1368fa9d01a6dbde0f0e362ba0a61109b39a463606ada65fe9c8e496e271f421')
prepare() {
cp -rT "Jenrikku-NARCSharp-$_narcsharpcommit" "$_reponame-$pkgver/NARCSharp"
}
build() {
cd "$_reponame-$pkgver"
dotnet publish -c Release -r linux-x64
}
package() {
install -dm755 "$pkgdir/usr/share/narc-cli"
install -dm755 "$pkgdir/usr/bin"
cp -r "$_reponame-$pkgver/$_reponame/bin/Release/net9.0/linux-x64/publish/"* "$pkgdir/usr/share/narc-cli"
rm "$pkgdir/usr/share/narc-cli/"*.pdb
chmod 755 "$pkgdir/usr/share/narc-cli/narc"
ln -s "/usr/share/narc-cli/narc" "$pkgdir/usr/bin/narc"
}
|