blob: 8de91487379a4c6a080ff1f16ed3e545c2ba0caa (
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
|
# Maintainer: demented <dev@snipesharp.xyz>
pkgname=demilis
pkgver=1.1.0
pkgrel=1
pkgdesc="TCP listener capable of accepting multiple connections"
arch=('arm64' 'x86_64')
url="https://github.com/dement6d/demilis"
license=('GPL3')
depends=()
options=("!strip")
makedepends=(dotnet-sdk)
provides=(demilis)
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd $pkgname
printf "1.1.0.r%s" "$(git rev-list --count HEAD)"
}
package() {
cd $pkgname/src
mkdir -p $pkgdir/usr/bin
[ "$CARCH" = "x86_64" ] && dotnet publish -c Release -r linux-x64 -p:PublishSingleFile=true --sc -o $pkgdir/usr/bin
[ "$CARCH" = "arm64" ] && dotnet publish -c Release -r linux-arm64 -p:PublishSingleFile=true --sc -o $pkgdir/usr/bin
rm $pkgdir/usr/bin/$pkgname.pdb
}
|