diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-07-19 14:48:23 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-07-19 15:00:35 +0200 |
commit | e261e6a3454559e6e6e14f9a9a086c9d01a31b2f (patch) | |
tree | 0e7e354a9714eb18571ea4089e4296be1302f1d2 /community/py-pathtools/APKBUILD | |
parent | 2c026d72e5621f08410f18f416214a9ddde234fa (diff) | |
download | aports-e261e6a3454559e6e6e14f9a9a086c9d01a31b2f.tar.bz2 aports-e261e6a3454559e6e6e14f9a9a086c9d01a31b2f.tar.xz |
community/py-pathtools: improve abuild
Diffstat (limited to 'community/py-pathtools/APKBUILD')
-rw-r--r-- | community/py-pathtools/APKBUILD | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/community/py-pathtools/APKBUILD b/community/py-pathtools/APKBUILD index 6f7d2a87e9..527a7cf398 100644 --- a/community/py-pathtools/APKBUILD +++ b/community/py-pathtools/APKBUILD @@ -3,39 +3,26 @@ pkgname=py-pathtools _pkgname=pathtools pkgver=0.1.2 -pkgrel=0 +pkgrel=1 pkgdesc="Path utilities for Python" url="https://github.com/gorakhargosh/pathtools" arch="noarch" license="MIT" depends="" -depends_dev="" -makedepends="$depends_dev py-setuptools python-dev" -install="" -subpackages="" -source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz" - -_builddir="$srcdir"/$_pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +makedepends="py-setuptools python-dev" +source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" python setup.py build || return 1 } package() { - cd "$_builddir" + cd "$builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } -md5sums="9a1af5c605768ea5804b03b734ff0f82 pathtools-0.1.2.tar.gz" -sha256sums="7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0 pathtools-0.1.2.tar.gz" -sha512sums="e014cb17f3d61ce7979e36663f94a44d4f1116c35e3d2ec8c4ac207a81935dde246495ed06597e6edade1509f384b9e5729a97ffd3eec31b1d1c4a8372d1dfd7 pathtools-0.1.2.tar.gz" +md5sums="9a1af5c605768ea5804b03b734ff0f82 py-pathtools-0.1.2.tar.gz" +sha256sums="7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0 py-pathtools-0.1.2.tar.gz" +sha512sums="e014cb17f3d61ce7979e36663f94a44d4f1116c35e3d2ec8c4ac207a81935dde246495ed06597e6edade1509f384b9e5729a97ffd3eec31b1d1c4a8372d1dfd7 py-pathtools-0.1.2.tar.gz" |