aboutsummaryrefslogtreecommitdiffstats
path: root/testing/repo/APKBUILD
blob: b563d083d2fade268a4780793287a97597ae2a95 (plain) (blame)
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
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=repo
pkgver=2.25
pkgrel=0
pkgdesc="repository management tool built on top of git"
url="https://gerrit.googlesource.com/git-repo"
arch="noarch"
license="Apache-2.0"
options="!check" # no tests upstream
depends="python3 git"
makedepends="py3-setuptools"
source="$pkgname-$pkgver::https://gerrit.googlesource.com/git-repo/+/refs/tags/v2.24.1/repo?format=TEXT"
builddir="$srcdir"

prepare() {
	default_prepare

	# workaround for nondeterministic Gitiles tarballs
	base64 -d repo-$pkgver > repo

	sed -i 's|^#!/usr/bin/env python|#!/usr/bin/python3|' repo
}

package() {
	install -Dm755 repo -t "$pkgdir"/usr/bin
}

sha512sums="
d15333189bddc4f9b18baaa27c9b3df112cfe67df38574770674b70a554595305a4f96e3feec6596cd369cf47528296c533a92301a366e8ee4aba8a4b4ece741  repo-2.25
"