blob: c5e07deba39269921be7c6c05d0bea8080039408 (
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
|
# Maintainer: Andrew Simmons <agsimmons0 at gmail dot com>
pkgname=hashdir
pkgver=1.4.0
pkgrel=0
pkgdesc="A command-line utility to hash directories and files"
arch=('x86_64' 'aarch64')
url="https://ultimateanu.github.io/hashdir/"
license=('MIT')
depends=('gcc-libs' 'zlib')
makedepends=('dotnet-sdk-8.0')
options=('!strip')
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/ultimateanu/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
)
sha256sums=('14104fca1c31e342f62a4fe76493bd1d509555df498271aefd4692da76cf3196')
build() {
cd "$pkgname-$pkgver"
if [ "$CARCH" = "x86_64" ]; then
_RUNTIME_IDENTIFIER="linux-x64"
elif [ "$CARCH" = "aarch64" ]; then
_RUNTIME_IDENTIFIER="linux-arm64"
else
>&2 echo "ERROR: Unsupported architecture '$CARCH'"
exit 1
fi
dotnet publish -c release -p:PublishProfile=binary src/App/App.fsproj -p:RuntimeIdentifier="$_RUNTIME_IDENTIFIER" -o build --framework net8.0
}
package() {
cd "$pkgname-$pkgver"
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
cp "LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
mkdir -p "$pkgdir/usr/bin"
cp "build/$pkgname" "$pkgdir/usr/bin"
}
|