diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3af486c1060a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python2-pywapi-git + pkgdesc = Python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs + pkgver = r126.7f05282 + pkgrel = 1 + url = https://launchpad.net/python-weather-api + arch = any + license = MIT + makedepends = git + depends = python2 + provides = python2-pywapi + conflicts = python2-pywapi + source = python2-pywapi-git::git+https://git.launchpad.net/~khurshid-alam/python-weather-api/+git/trunk + md5sums = SKIP + +pkgname = python2-pywapi-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5ac6e6f3f418 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: willemw <willemw12@gmail.com> + +pkgname=python2-pywapi-git +pkgver=r126.7f05282 +pkgrel=1 +pkgdesc="Python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs" +arch=('any') +url="https://launchpad.net/python-weather-api" +license=('MIT') +depends=('python2') +makedepends=('git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +#source=($pkgname::git+https://github.com/khurshid-alam/python-weather-api.git) +source=($pkgname::git+https://git.launchpad.net/~khurshid-alam/python-weather-api/+git/trunk) +md5sums=('SKIP') + +pkgver() { + cd $pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $pkgname + python2 setup.py build +} + +package() { + cd $pkgname + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + python2 setup.py install --root="$pkgdir" --optimize=1 +} + |