blob: 8d6b14864be73e4a1ff6a3bebdc99595cc7347cc (
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: Nixuge
pkgname=modrinth-cli-git
_gitname=theseus
pkgver=r229.7644701
pkgrel=1
pkgdesc='Official Modrinth CLI launcher. Open-source, built by the community, for the community.'
url=https://github.com/modrinth/theseus
arch=(x86_64)
license=(GPL3)
conflicts=('modrinth-cli')
provides=('modrinth-cli')
makedepends=('git')
# Note:
# For some unknown reason, theseus_cli has been entirely removed as of this commit:
# https://github.com/modrinth/theseus/commit/28779196393b59f06bcecbf88c77e49dc297989f
# so using the previous git commit for now, until it's added back (?)
# Tbh this doesn't build for me, but keeping it as is for reference since i'm pretty sure this is deprecated :/
# If I have time, will try and fix it.
source=("git+https://github.com/modrinth/theseus#commit=7644701")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "${srcdir}/${_gitname}/theseus_cli/"
cargo build --release
}
package() {
install -dm755 "${pkgdir}/usr/bin"
install -Dm755 \
"${srcdir}/${_gitname}/target/release/theseus_cli" \
"${pkgdir}/usr/bin/theseus_cli"
}
|