mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-17 11:42:31 +02:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-pathtools
|
|
_pkgname=pathtools
|
|
pkgver=0.1.2
|
|
pkgrel=12
|
|
pkgdesc="Path utilities"
|
|
url="https://github.com/gorakhargosh/pathtools"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
|
importlib.patch
|
|
"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
options="!check"
|
|
|
|
replaces=py-pathtools # Backwards compatibility
|
|
provides=py-pathtools=$pkgver-r$pkgrel # Backwards compatibility
|
|
|
|
prepare() {
|
|
default_prepare
|
|
# remove interpreter line from libraries
|
|
sed -i '/#!\//d' pathtools/*.py
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
e014cb17f3d61ce7979e36663f94a44d4f1116c35e3d2ec8c4ac207a81935dde246495ed06597e6edade1509f384b9e5729a97ffd3eec31b1d1c4a8372d1dfd7 pathtools-0.1.2.tar.gz
|
|
a87bcf6aee4879206c60d572e2cd057750b119af36e33ee58d54afffc6ea45b80897157cfa89cca7394c772eabcfa0bd7222e7b36a406da1f099ab4ef6093741 importlib.patch
|
|
"
|