blob: 1257ceadffd122020c7ed3b983e38982fcb89bf1 (
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
|
pkgbase='python-pre-commit-mirror-maker'
pkgname=('python-pre-commit-mirror-maker')
_module='pre-commit-mirror-maker'
pkgver='1.9.0'
pkgrel=1
pkgdesc="Scripts for creating mirror repositories that do not have .pre-commit-hooks.yaml"
url="https://github.com/pre-commit/pre-commit-mirror-maker"
depends=('python')
makedepends=('python-setuptools')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/${_module//-/_}-$pkgver.tar.gz")
sha256sums=('a5ae18e48a9d4ab3ceb7738a4c17e3ac572b7a9d24c7d80290fd517c61e9e59c')
build() {
cd "${srcdir}/${_module//-/_}-${pkgver}"
python setup.py build
}
package() {
depends+=()
cd "${srcdir}/${_module//-/_}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
|