summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 499e7581c966f8708e301ddba014854af2b7a6e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Nicolas Haigh <haigh.nicolas at googlemail dot com>
pkgname=python2-owm
pkgver=2.5.0
pkgrel=1
pkgdesc="A wrapper for the OpenWeatherMap API"
arch=('any')
url="https://github.com/csparpa/pyowm"
license=('MIT')
depends=('python2>=2.7')
makedepends=("python2-setuptools")
options=("strip")
source=("https://github.com/csparpa/pyowm/archive/$pkgver.tar.gz")
md5sums=(SKIP)

prepare() {
	cd "pyowm-$pkgver"
}

build() {
	cd "pyowm-$pkgver"
    python2 setup.py build
}

package() {
	cd "pyowm-$pkgver"
    python2 setup.py install --root="$pkgdir"
    install -D -m644 LICENSE \
        "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}