blob: 83ddcb88bdfe064cdcc6fb32521fc222b1a7b3a8 (
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
|
# Maintainer: Rubin Simons <me@rubin55.org>
# Note: change to main when .net9 work merges
_branch=artempyanykh/stack/8
_pkgname=marksman
pkgname=${_pkgname}-git
pkgver=r477.92d3db3
pkgrel=1
pkgdesc="Write Markdown with code assist and intelligence in the comfort of your favourite editor."
arch=('any')
url="https://github.com/artempyanykh/${_pkgname}"
license=('GPL')
makedepends=('dotnet-sdk' 'git')
depends=('dotnet-runtime')
options=('!strip')
source=("${pkgname}::git+${url}.git#branch=${_branch}")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
# Disable dotnet telemetry
export DOTNET_CLI_TELEMETRY_OPTOUT=1
dotnet build --configuration Release Marksman.sln
dotnet publish --configuration Release Marksman.sln --output "$PWD"/publish
}
package() {
mkdir -p "$pkgdir"/usr/lib
mkdir -p "$pkgdir"/usr/bin
cp -dr --no-preserve='ownership' ${pkgname}/publish "$pkgdir"/usr/lib/marksman
ln -s /usr/lib/marksman/marksman "$pkgdir"/usr/bin/marksman
}
|