blob: f91bef9ce2ea5e6d8d44641fe15946df513d5de4 (
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
|
# Maintainer: Jiri Pospisil <jiri@jpospisil.com>
pkgname=garnet
pkgver=1.0.15
pkgrel=1
pkgdesc='A high-performance cache-store from Microsoft Research'
arch=('x86_64')
url='https://microsoft.github.io/garnet'
license=('MIT')
_dotnet_ver=8.0
depends=("dotnet-runtime-$_dotnet_ver")
makedepends=("dotnet-sdk-$_dotnet_ver")
options=('!strip' '!debug')
backup=('etc/garnet/garnet-server.conf')
source=(
"https://github.com/microsoft/garnet/archive/refs/tags/v$pkgver.tar.gz"
'garnet-server.service'
'garnet-server.conf'
)
b2sums=('5873980e7de80b2e4458ffe0aacd874cb0c1aea04a8ec567f0e05d4a3f6100e01d6af37ddd634e4b8f8928814ee7832b4ed7f5fa90e19fd8608154eee5a73a6f'
'3db262540ecd4c4474e5fd506ec807b80e73105415e0714cf1a33bfd4221e6722ce22c099eb83dffea8c5baf1162768804b6ba374fd6693958af9d36f51e1ebe'
'0fc412787edebe41d32d54ea51527fbdf9ff0240b85b3de2d9ee244abdd87a76355041e367a27d6f417ee86e37a568c0164e661dc03205aa2e638bdf08f8fa0f')
build() {
cd "$srcdir/garnet-$pkgver/main/GarnetServer"
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
export DOTNET_NOLOGO=1
dotnet publish GarnetServer.csproj -o build -p:PublishProfile=linux-x64-based "-f:net$_dotnet_ver"
}
package() {
install -Dm644 -t "$pkgdir/usr/lib/systemd/system" garnet-server.service
install -Dm644 -t "$pkgdir/etc/garnet" garnet-server.conf
cd "$srcdir/garnet-$pkgver/main/GarnetServer/build"
mkdir "$pkgdir/usr/lib/garnet"
install -Dm755 -t "$pkgdir/usr/lib/garnet" GarnetServer
install -Dm644 -t "$pkgdir/usr/lib/garnet" GarnetServer.pdb runtimes/linux-x64/native/libnative_device.so
mkdir "$pkgdir/usr/bin"
ln -sr "$pkgdir/usr/lib/garnet/GarnetServer" "$pkgdir/usr/bin/GarnetServer"
}
|