diff options
author | willemw12 | 2024-03-10 18:04:15 +0100 |
---|---|---|
committer | willemw12 | 2024-03-10 18:04:15 +0100 |
commit | 0fe9a1261fc01dbbc4346bad2c2f54621ef47122 (patch) | |
tree | 19683e60d5d307b95c6fb0e8d0f8d978ec6f35d5 | |
parent | 1b84a4f3f03f675ba5113b63bf3c53a7629f6683 (diff) | |
download | aur-0fe9a1261fc01dbbc4346bad2c2f54621ef47122.tar.gz |
Update to standards based install
Minor edits.
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 18 insertions, 16 deletions
@@ -1,16 +1,19 @@ pkgbase = python-pywapi-git pkgdesc = Python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs pkgver = r126.7f05282 - pkgrel = 1 + pkgrel = 2 url = https://launchpad.net/python-weather-api arch = any license = MIT makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools depends = python provides = python-pywapi conflicts = python-pywapi source = python-pywapi-git::git+https://git.launchpad.net/~khurshid-alam/python-weather-api/+git/trunk - md5sums = SKIP + sha256sums = SKIP pkgname = python-pywapi-git - @@ -2,18 +2,18 @@ pkgname=python-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=('python') -makedepends=('git') +pkgrel=2 +pkgdesc='Python wrapper around the Yahoo! Weather, Weather.com and NOAA APIs' +arch=(any) +url=https://launchpad.net/python-weather-api +license=(MIT) +depends=(python) +makedepends=(git python-build python-installer python-wheel python-setuptools) 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') +source=("$pkgname::git+https://git.launchpad.net/~khurshid-alam/python-weather-api/+git/trunk") +sha256sums=('SKIP') pkgver() { cd $pkgname @@ -22,12 +22,11 @@ pkgver() { build() { cd $pkgname - python setup.py build + python -m build --wheel --no-isolation } package() { cd $pkgname - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname%-git}" + python -m installer --destdir="$pkgdir" dist/*.whl } - |