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 /PKGBUILD | |
parent | 1b84a4f3f03f675ba5113b63bf3c53a7629f6683 (diff) | |
download | aur-0fe9a1261fc01dbbc4346bad2c2f54621ef47122.tar.gz |
Update to standards based install
Minor edits.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 12 insertions, 13 deletions
@@ -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 } - |