blob: 6ee122652f6dbe6f2a0ecf9fa80b73d8e501714e (
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
|
pkgname=shs-git
pkgver=r1
pkgrel=1
pkgdesc="Sharkscript standalone Compiler & VM"
arch=('x86_64' 'aarch64')
url="https://github.com/mayshecry/sharkscript-standalone"
license=('custom:Sharkscript')
depends=('glibc')
makedepends=('git' 'go')
source=("git+https://github.com/mayshecry/sharkscript-standalone.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/sharkscript-standalone"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/sharkscript-standalone"
export CGO_ENABLED=0
go mod download
go mod verify
go build -mod=mod -trimpath -ldflags="-s -w" -o shs main.go
}
package() {
cd "$srcdir/sharkscript-standalone"
install -Dm755 shs "$pkgdir/usr/bin/shs"
}
|