blob: ac923ef53ec5d0a3bf0e012f06987efe9931eb11 (
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
|
# Maintainer: HRKings <hrkings@***.com>
pkgname=gitgudcli-git
_pkgname=GitGudCLI
pkgver=1.0.2
pkgrel=1
pkgdesc="Brings pokemon to the terminal using the power of cowsay."
arch=(any)
url="https://github.com/HRKings/GitGudCLI.git"
license=('unknown')
makedepends=('git' 'dotnet-sdk')
provides=(gitgudcli)
source=("git+${url}")
md5sums=('SKIP')
options=(!strip)
package() {
cd ${_pkgname}
# Move to the stable branch
git checkout stable
# Install the README
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
# Cd into project
cd ${_pkgname}
# Compile with all the flags
dotnet publish -c Release -r linux-x64 --self-contained true -p:PublishSingleFile=true -p:PublishReadyToRun=true -o ./compiled
# Install the CLI
install -Dm755 ./compiled/GitGudCLI "${pkgdir}"/usr/bin/gitgud
}
|