blob: ce8c80e602e9f312680d7d18fc22e4b8f80a5ec9 (
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
|
# Maintainer: Bruno Miguel <bruno@privacyrequired.com>
pkgname=codeberg-cli-git
pkgver=0.4.2.9c3d4a2
pkgrel=4
pkgdesc='CLI Tool for Codeberg similar to gh and glab.'
arch=(x86_64)
url='https://codeberg.org/RobWalt/codeberg-cli'
license=(AGPL3)
depends=(gcc-libs openssl)
makedepends=(git rust)
provides=(codeberg-cli)
conflicts=(codeberg-cli)
source=(git+$url.git)
sha256sums=('SKIP')
md5sums=('SKIP')
install=codeberg-cli.install
pkgver() {
cd "$provides"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)//;s/-/./g'
}
build() {
cd "$provides"
cargo build --all-features --release
}
check() {
cd "$provides"
cargo test --all-features
}
package() {
install -Dm755 "$srcdir/$provides/target/release/berg" "$pkgdir/usr/bin/codeberg-cli"
install -Dm755 "$srcdir/$provides/LICENSE" "$pkgdir/usr/share/licenses/$provides/LICENSE"
}
|