summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwillemw122015-06-09 10:58:26 +0200
committerwillemw122015-06-09 10:58:26 +0200
commitb4950dbbfde9bd04d0068c646acfd4dffdccd94a (patch)
treee6833c1280564902a4f74bb0e46c2ab43184fca6
parenta4c4957513d8f4cc577dac16265924fa4440f3e8 (diff)
downloadaur-b4950dbbfde9bd04d0068c646acfd4dffdccd94a.tar.gz
Created split package (python-pywapi python2-pywapi)
-rw-r--r--PKGBUILD37
1 files changed, 33 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6e9e9002d41..195390db5c3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,12 @@
# Maintainer: willemw <willemw12@gmail.com>
+# 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-pywapi
pkgver=0.3.8
-pkgrel=2
-pkgdesc="Python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs"
+pkgrel=3
arch=('any')
#url="https://launchpad.net/python-weather-api"
url="http://code.google.com/p/python-weather-api"
@@ -13,9 +15,36 @@ depends=('python')
source=(https://launchpad.net/python-weather-api/trunk/$pkgver/+download/$_pkgname-$pkgver.tar.gz)
md5sums=('75bf8257f32f2d36169d57d92566cdb1')
-package() {
+prepare() {
+ cp -a $_pkgname-$pkgver ${_pkgname}2-$pkgver
+
+ #cd ${_pkgname}2-$pkgver
+ #sed "s|\(python\).*|\12|" -i $_pkgname.py
+}
+
+build() {
+ cd "$srcdir/$_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')
+
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"
+}
+