user/git-mirror: new aport
This commit is contained in:
parent
6a9a5e3d15
commit
6d3b99ced7
1 changed files with 34 additions and 0 deletions
34
user/git-mirror/APKBUILD
Normal file
34
user/git-mirror/APKBUILD
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: Antoine Martin <dev@ayakael.net>
|
||||
# Contributor: Antoine Martin <dev@ayakael.net>
|
||||
pkgname=git-mirror
|
||||
pkgver=0.14.10
|
||||
pkgrel=0
|
||||
pkgdesc="A small utility that allows to mirror external repositories to GitLab, GitHub and possible more."
|
||||
url="https://github.com/bachp/git-mirror/tree/21fd1dd9586fa6743d3bc720c02afc568c6d2dfe"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
depends="git git-lfs py3-gitlab git-svn"
|
||||
makedepends="cargo openssl-dev"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/bachp/git-mirror/archive/refs/tags/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cargo fetch --locked
|
||||
}
|
||||
|
||||
build() {
|
||||
OPENSSL_NO_VENDOR=true cargo build --release --frozen
|
||||
}
|
||||
|
||||
check() {
|
||||
OPENSSL_NO_VENDOR=true cargo test --frozen
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 "$builddir"/target/release/git-mirror "$pkgdir"/usr/bin/git-mirror
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
f7af31f4f0460df30c9192423b0861baaeb338c7ebbe1fd2247743b7cd6f87141e65ed32c84dada8b238a4e39775b3f19c5df097d2b190eb290aa9255a1e4d16 git-mirror-0.14.10.tar.gz
|
||||
"
|
Loading…
Reference in a new issue