blob: 051ab2778312bb4dfc26aeea6ee53f2b0722ec80 (
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
|
# Maintainer: hzmi <contact at hzmi.xyz>
# Contributor: Gabriel Guldner <gabriel at guldner.eu>
_pkgname=git-credential-manager
pkgname=git-credential-manager-bin
pkgver=2.6.0
pkgrel=1
pkgdesc="Secure, cross-platform Git credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services."
arch=('x86_64')
url="https://github.com/git-ecosystem/git-credential-manager"
license=('MIT')
depends=('fontconfig' 'git' 'icu' 'krb5' 'zlib')
optdepends=('org.freedesktop.secrets: For storing credentials using freedesktop.org Secret Service API (libsecret)'
'pass: For storing credentials using gpg via pass' )
provides=($_pkgname)
conflicts=($_pkgname)
replaces=(git-credential-manager-core-bin)
install=$_pkgname.install
changelog=
options=('!strip')
source=("https://github.com/git-ecosystem/git-credential-manager/releases/download/v$pkgver/gcm-linux_amd64.$pkgver.tar.gz"
"$_pkgname.install"
'https://raw.githubusercontent.com/git-ecosystem/git-credential-manager/main/LICENSE')
noextract=("gcm-linux_amd64.$pkgver.tar.gz")
sha256sums=('5d620adb6d96aed36c6427244005ab0cadbd9876e4a3c1aaf0b9bfa538db69bc'
'9c4dd73ab2e074a4fb828299c32600dd9409a873e064a1208567070dcc41a899'
'b47f1a8a744ecdc7a3da35804f88552805d33f51a726b87a2105acdfae406b07')
prepare() {
cd "$srcdir"
bsdtar xvf "gcm-linux_amd64.$pkgver.tar.gz"
}
package() {
cd "$srcdir"
mkdir -pv "$pkgdir/usr/bin"
mkdir -pv "$pkgdir/usr/lib/share/$pkgname"
mkdir -pv "$pkgdir/usr/share/licenses/$pkgname"
find \( -name LICENSE -o -name NOTICE \) -exec install -Dm644 -o0 -g0 "{}" "$pkgdir/usr/share/licenses/$pkgname/{}" \;
find -type f -not -name "NOTICE" -exec install -Dm755 -o0 -g0 "{}" "$pkgdir/usr/lib/share/$pkgname/{}" \;
ln -s "../lib/share/$pkgname/git-credential-manager" "$pkgdir/usr/bin/git-credential-manager"
}
|