aboutsummaryrefslogtreecommitdiffstats
path: root/testing/breezy/APKBUILD
blob: 4b99d1a6aae6d250e77d9b8ffe49ca154bdc1745 (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
32
33
34
# Maintainer: Pedro Filipe <xpecex@outlook.com>
pkgname=breezy
pkgver=3.1.0
pkgrel=0
pkgdesc="Decentralized revision control system"
url="https://www.breezy-vcs.org/"
arch="all"
license="GPL-2.0-or-later"
depends="py3-configobj py3-six"
makedepends="python3-dev py3-dulwich py3-fastimport py3-gpgme py3-paramiko
	py3-setuptools gettext"
subpackages="$pkgname-doc"
options="!check" # Suit test not work
source="https://launchpad.net/brz/${pkgver%.*}/$pkgver/+download/breezy-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root="$pkgdir"
	ln -s brz "$pkgdir"/usr/bin/bzr # backwards compatibility

	find "$pkgdir"/usr/lib/python3*/site-packages -type d -name tests \
		-exec rm -rf {} +
}

doc() {
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/man "$subpkgdir"/usr/share
	default_doc
}

sha512sums="40ea1ae364940ac8ff83d3f5da2437cc62fbda0ca98b3ae90a38dfad87555c3993b852ce186323454d7ab002ba4fbb3270e70953504e449c445efe147847204d  breezy-3.1.0.tar.gz"