blob: 65e8bb6ac3c9e2389e62ae7c14490f4fdba47ca9 (
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
41
42
43
|
# Maintainer: Paul <pb.orzel@proton.me>
pkgname="guppy"
pkgver=0.2.5
pkgrel=3
pkgdesc="Tool to manage your installations from Git Repositories for you"
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
url="https://gitlab.com/Teddy-Kun/guppy"
license=('GPL-3')
depends=(
'libgit2'
'openssl'
'gcc-libs'
'glibc'
)
makedepends=(
'cargo'
)
optdepends=(
'bash: the default_make is a bash script'
'nano: default editor for the makefiles'
)
source=("https://gitlab.com/Teddy-Kun/guppy/-/archive/v$pkgver/guppy-v$pkgver.tar.gz")
sha256sums=('32bcb46cc1af7496d769248f4a9e3070454a408e62afe7da51159b6f22295d4f')
prepare() {
cd "$srcdir/$pkgname-v$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$srcdir/$pkgname-v$pkgver"
cargo b --frozen --release
}
package() {
cd "$srcdir/$pkgname-v$pkgver"
mkdir -p "$pkgdir/usr/share/guppy"
install -Dm755 target/release/guppy -t "$pkgdir/usr/bin/"
install -Dm755 resources/default_make.guppy -t "$pkgdir/usr/share/guppy/"
}
|