mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Maintainer:
|
|
pkgname=py3-unidiff
|
|
pkgver=0.7.4
|
|
pkgrel=1
|
|
pkgdesc="Unified diff python parsing/metadata extraction library"
|
|
url="https://github.com/matiasb/python-unidiff"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/matiasb/python-unidiff/archive/refs/tags/v$pkgver.tar.gz
|
|
fix-test-script.patch"
|
|
builddir="$srcdir/python-unidiff-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
sh run_tests.sh
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
|
|
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
|
|
install -m644 README.rst HISTORY AUTHORS \
|
|
"$pkgdir"/usr/share/doc/$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
b8e1d8165efcc5788707432c3c3236d97ec86ae577ff3dd7ec405809dbaef3153a835572844f7ef2a4d5d2c9b60dee586717e4cf0acf4db8049ab7c5af178a07 py3-unidiff-0.7.4.tar.gz
|
|
3c42b36da7a549d59647a2a489cb85f45d5d51c839b206893e39f2bc5fc14917719e1aa5cd1042758c55bc7a218c63f1df3bb76c28c57724cc6a890ecafa64bc fix-test-script.patch
|
|
"
|