summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwillemw122019-12-27 09:49:57 +0100
committerwillemw122019-12-27 09:49:57 +0100
commit1d3431b45a79f4d6513fb4f9cca19447bdb2c715 (patch)
tree2a39133a85dd16a6b5ce0178b8b696b6d4f2e1b9
parenta635e6c009e34920d4810e5c39905b15708fee7c (diff)
downloadaur-1d3431b45a79f4d6513fb4f9cca19447bdb2c715.tar.gz
Remove Python 2 version
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD35
2 files changed, 8 insertions, 37 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 33c5abf1a40..341847e0282 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,13 @@
pkgbase = python-pywapi
+ pkgdesc = Python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs
pkgver = 0.3.8
- pkgrel = 5
+ pkgrel = 6
url = https://launchpad.net/python-weather-api
arch = any
license = MIT
makedepends = python
- makedepends = python2
source = https://launchpad.net/python-weather-api/trunk/0.3.8/+download/pywapi-0.3.8.tar.gz
md5sums = 75bf8257f32f2d36169d57d92566cdb1
pkgname = python-pywapi
- pkgdesc = Python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs
- depends = python
-
-pkgname = python2-pywapi
- pkgdesc = Python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs
- depends = python2
diff --git a/PKGBUILD b/PKGBUILD
index 4a353267f6d..3cb47e9f0e1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,50 +2,27 @@
# Contributor: Hugo Osvaldo Barrera <hugo@barrera.io>
# Contributor: SpepS <dreamspepser at yahoo dot it>
-pkgbase=python-pywapi
-pkgname=(python-pywapi python2-pywapi)
_pkgname=pywapi
+pkgname=python-$_pkgname
pkgver=0.3.8
-pkgrel=5
+pkgrel=6
+pkgdesc="Python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs"
arch=('any')
#url="http://code.google.com/p/python-weather-api"
url="https://launchpad.net/python-weather-api"
license=('MIT')
-makedepends=('python' 'python2')
+makedepends=('python')
source=(https://launchpad.net/python-weather-api/trunk/$pkgver/+download/$_pkgname-$pkgver.tar.gz)
md5sums=('75bf8257f32f2d36169d57d92566cdb1')
-prepare() {
- rm -rf ${_pkgname}2-$pkgver
- cp -a $_pkgname-$pkgver ${_pkgname}2-$pkgver
-
- #cd ${_pkgname}2-$pkgver
- #sed "s|\(python\).*|\12|" -i $_pkgname.py
-}
-
build() {
- cd "$srcdir/$_pkgname-$pkgver"
+ cd $_pkgname-$pkgver
python setup.py build
-
- cd "$srcdir/${_pkgname}2-$pkgver"
- python2 setup.py build
}
-package_python-pywapi() {
- pkgdesc="Python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs"
- depends=('python')
-
+package() {
cd $_pkgname-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-package_python2-pywapi() {
- pkgdesc="Python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs"
- depends=('python2')
-
- cd ${_pkgname}2-$pkgver
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-