summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault2019-02-25 11:05:49 -0500
committerDrew DeVault2019-02-25 11:05:49 -0500
commit498e65818bf5f3b841d5f0886b5851a6ddefe77d (patch)
treeec39b34cb2cf0451636311a822590db1c6ecda62
parentb86e2a2d937971e1ad5736c9bff10c9dbbe1559f (diff)
downloadaur-python-asif.tar.gz
Cleanup
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD14
2 files changed, 9 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4dda06b789d..382b2712dbd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,7 +7,7 @@ pkgbase = python-asif
license = MIT
makedepends = python-setuptools
depends = python
- source = https://files.pythonhosted.org/packages/source/a/asif/asif-0.2.2.tar.gz
+ source = python-asif-0.2.2.tar.gz::https://files.pythonhosted.org/packages/source/a/asif/asif-0.2.2.tar.gz
sha256sums = db4eb4cfd45176483631172338e239c65cd60f617bf83189714cb85ff6e716e1
pkgname = python-asif
diff --git a/PKGBUILD b/PKGBUILD
index 0f9e87b8a6c..a84f0994e70 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
-_name=asif
-pkgname="python-${_name}"
+pkgname="python-asif"
+_pkgname=asif
pkgver=0.2.2
pkgrel=1
pkgdesc="A Python 3.5, asyncio- and decorator-based IRC framework"
@@ -8,15 +8,17 @@ arch=("any")
license=("MIT")
depends=("python")
makedepends=("python-setuptools")
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('db4eb4cfd45176483631172338e239c65cd60f617bf83189714cb85ff6e716e1')
build() {
- cd "${srcdir}/${_name}-${pkgver}"
+ cd "$_pkgname-$pkgver"
python setup.py build
}
package() {
- cd "${srcdir}/${_name}-${pkgver}"
- python setup.py install --root="${pkgdir}/" --optimize=1
+ cd "$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+ # upstream does not provide a license
+ #install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}