blob: 91da080a90037a2ef91c5d72c6cfca2ab0da2189 (
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
|
# Maintainer: Le Soup le.soup@hotmail.com
pkgname=modo
pkgver=$(git -c 'versionsort.suffix=-' ls-remote -t --exit-code --refs --sort=-v:refname \
https://github.com/mlange-42/modo 'v*' \
| sed -En '1!q;s/^[[:xdigit:]]+[[:space:]]+refs\/tags\/v(.+)/\1/p')
pkgrel=1
pkgdesc="Documentation generator (DocGen) for the Mojo programming language"
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/mlange-42/modo"
license=('MIT')
depends=('glibc') # Depends on Modular 'magic' cli for managing mojo environments, which isnt on AUR yet. Most users of modo already have magic.
makedepends=('go' 'git')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mlange-42/modo/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('SKIP') #Dynamic pkg
build() {
export GOPATH="${srcdir}/go"
mkdir -p "$GOPATH"
cd "$srcdir"
go install github.com/mlange-42/modo@v${pkgver}
go clean
cd "$srcdir"
rm -f ./.gitattributes #Some weird permission error. I didnt even add gitattr, get added by aur i guess
sudo rm -f ./go/pkg/ -rfd #Some more permission errors yay
}
package() {
install -Dm755 "${srcdir}/go/bin/modo" "${pkgdir}/usr/bin/modo"
}
provides=("modo")
conflicts=("modo")
|