summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCarlos Aznarán Laos2022-10-29 13:00:24 -0500
committerCarlos Aznarán Laos2022-10-29 13:00:24 -0500
commit134c93699c7c3d879346c8281e776124171d23cb (patch)
treed00f65afc39d414743bf5851fa43f51fc147c263 /PKGBUILD
parentedf9e0ee07366322f9d12ea03432b35027e3c7a7 (diff)
downloadaur-134c93699c7c3d879346c8281e776124171d23cb.tar.gz
Bump version to 0.2.2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 10 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b298aa25b0da..e065c35c96fe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,28 +3,29 @@
_base=outdated
pkgname=python-${_base}
pkgdesc="Check if a version of a PyPI package is outdated"
-pkgver=0.2.1
-pkgrel=4
+pkgver=0.2.2
+pkgrel=1
arch=(any)
url="https://github.com/alexmojaki/${_base}"
license=(MIT)
-depends=(python-requests python-littleutils)
-makedepends=(python-setuptools-scm python-wheel git)
-source=("${_base}-${pkgver}::git+${url}.git?#tag=v${pkgver}")
-sha512sums=('SKIP')
+depends=(python-requests python-littleutils python-setuptools)
+makedepends=(python-setuptools-scm)
+source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
+sha512sums=('812fe6ce178d0106c1a4a077fa27bef6a1bbeae87d4c6984a88f2aa89926e13a87a5afbfeffc230b0a3456818b25a539fa2665801c037f299d8364e57b999fbf')
build() {
- cd "${_base}-${pkgver}"
+ export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
+ cd ${_base}-${pkgver}
python -c "from setuptools import setup; setup();" build
}
check() {
- cd "${_base}-${pkgver}"
+ cd ${_base}-${pkgver}
python tests.py
}
package() {
- cd "${_base}-${pkgver}"
+ cd ${_base}-${pkgver}
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -c "from setuptools import setup; setup();" install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}