python-breezy/PKGBUILD

53 lines
1.4 KiB
Bash
Raw Permalink Normal View History

2024-10-29 21:10:59 +08:00
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=python-breezy
2024-10-29 23:35:19 +08:00
pkgver=3.3.9
2024-10-29 21:10:59 +08:00
pkgrel=1
pkgdesc="A decentralized revision control system with support for Bazaar and Git file formats"
arch=('x86_64')
url="https://www.breezy-vcs.org"
2024-10-29 23:35:19 +08:00
license=('GPL-2.0-or-later')
2024-10-29 21:10:59 +08:00
depends=(
2024-10-29 23:35:19 +08:00
'gcc-libs'
'glibc'
'python'
2024-10-29 21:10:59 +08:00
'python-configobj'
'python-dulwich'
'python-fastbencode'
'python-merge3'
'python-patiencediff'
'python-pyyaml'
)
makedepends=(
'python-cython'
'python-build'
'python-fastimport'
'python-gpgme'
'python-installer'
'python-packaging'
'python-paramiko'
'python-setuptools'
'python-setuptools-gettext'
'python-setuptools-rust'
'python-wheel')
2024-10-29 23:35:19 +08:00
source=(https://launchpad.net/brz/${pkgver%.*}/${pkgver}/+download/${pkgname#*-}-${pkgver}.tar.gz)
sha256sums=(c2588bf217c8a4056987ecf6599f0ad9fb8484285953b2e61905141f43c3d5d8)
2024-10-29 21:10:59 +08:00
build() {
2024-10-29 23:35:19 +08:00
cd ${pkgname#*-}-${pkgver}
2024-10-29 21:10:59 +08:00
python3 -m build --wheel --no-isolation
}
package() {
2024-10-29 23:35:19 +08:00
cd ${pkgname#*-}-${pkgver}
2024-10-29 21:10:59 +08:00
python3 -m installer --destdir=${pkgdir} dist/*.whl
2024-10-29 23:35:19 +08:00
ln -s brz ${pkgdir}/usr/bin/bzr # backwards compatibility
2024-10-29 21:10:59 +08:00
}