summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBen Westover2022-06-19 02:34:29 -0400
committerBen Westover2022-06-19 02:34:29 -0400
commit3d45bb46ba5c97aecad5c1a7f6c2749455663b5a (patch)
tree699aba3ea4c30e860b4f7daf8080fb1c54a3c43b /PKGBUILD
parent3388f7d605997e39f7baa42ca580a3e6f6dd6093 (diff)
downloadaur-python-rust2rpm.tar.gz
Update to version 21
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 14 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 85b89eec2bb..e7979c44cb8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,29 @@
# Maintainer: Ben Westover <kwestover.kw@gmail.com>
+
pkgname=python-rust2rpm
-pkgver=20
+pkgver=21
pkgrel=1
-pkgdesc="RPM macro/tools/junk for Rust"
+pkgdesc="Tool for automatically generating RPM spec files for Rust crates"
arch=('any')
url="https://pagure.io/fedora-rust/rust2rpm"
license=('MIT')
depends=('python' 'python-jinja' 'python-requests' 'python-tqdm')
makedepends=('python-setuptools')
-optdepends=('python-pynacl: Voice support'
- 'libffi: Voice support')
-source=("https://pagure.io/fedora-rust/rust2rpm/archive/v20/rust2rpm-v${pkgver}.tar.gz")
-sha256sums=('fa8b7d8fab5ed5a84a38c6f9f4a468671536e8a8e4e74affaf8f4ba1988b9327')
+checkdepends=('python-pytest')
+source=("https://pagure.io/fedora-rust/rust2rpm/archive/v${pkgver}/rust2rpm-v${pkgver}.tar.gz")
+sha256sums=('5ecea8fb85ba222dc06e21b65ddbd0a195d79ffa8dfd19224c232c947dcd188c')
build() {
- cd "$srcdir"/rust2rpm-v${pkgver}
+ cd rust2rpm-v$pkgver
python setup.py build
}
+check() {
+ cd rust2rpm-v$pkgver
+ pytest test.py
+}
+
package() {
- cd "$srcdir"/rust2rpm-v${pkgver}
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
- python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ cd rust2rpm-v$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}