blob: 4f706cd79eca32874f0b9c17ceb20b623638d637 (
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
44
45
46
47
|
# Maintainer: ldev <ldev dot eu dot org>
pkgver=r3.3f22126
pkgrel=1
pkgname=git-credential-github-git
pkgdesc="A simple git credentials helper for github"
license=('MIT')
url="https://github.com/Xgames123/git-credential-github"
arch=('any')
binname=git-credential-github
source=("git+$url")
sha256sums=('SKIP')
conflicts=("git-credential-github" "gh-login")
provides=("git-credential-github")
makedepends=(
cargo
)
optdepends=(
xdg-utils
wl-clipboard
xclip
)
pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd "$srcdir/git-credential-github"
rm -f Cargo.lock
export RUSTUP_TOOLCHAIN=stable
cargo fetch
}
build() {
cd "$srcdir/git-credential-github"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "$srcdir/git-credential-github"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$binname"
ln -s "/usr/bin/$binname" "$pkgdir/usr/bin/git-credential-gh-login"
}
|