aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pathtools
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-07-25 21:15:30 +0300
committerprspkt <prspkt@protonmail.com>2019-07-25 21:23:13 +0300
commit174455672fa1f34cc8b0e070f7bebdf0f555efe2 (patch)
tree2f3e242be8ecca06c564a9287246800a649259ca /community/py3-pathtools
parente46a780c8deeec05aabdf65de8ec36a1f3d97459 (diff)
downloadaports-174455672fa1f34cc8b0e070f7bebdf0f555efe2.tar.bz2
aports-174455672fa1f34cc8b0e070f7bebdf0f555efe2.tar.xz
community/py-pathtools: drop python2
Signed-off-by: prspkt <prspkt@protonmail.com>
Diffstat (limited to 'community/py3-pathtools')
-rw-r--r--community/py3-pathtools/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/py3-pathtools/APKBUILD b/community/py3-pathtools/APKBUILD
new file mode 100644
index 0000000000..31e07a3957
--- /dev/null
+++ b/community/py3-pathtools/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py3-pathtools
+_pkgname=pathtools
+pkgver=0.1.2
+pkgrel=5
+pkgdesc="Path utilities"
+url="https://github.com/gorakhargosh/pathtools"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="py3-setuptools"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+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 --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="e014cb17f3d61ce7979e36663f94a44d4f1116c35e3d2ec8c4ac207a81935dde246495ed06597e6edade1509f384b9e5729a97ffd3eec31b1d1c4a8372d1dfd7 pathtools-0.1.2.tar.gz"