[arch-commits] Commit in python-debian/repos (community-any community-any/PKGBUILD)
George Rawlinson
grawlinson at archlinux.org
Tue Jul 6 01:09:31 UTC 2021
Date: Tuesday, July 6, 2021 @ 01:09:31
Author: grawlinson
Revision: 972528
archrelease: copy trunk to community-any
Added:
python-debian/repos/community-any/
python-debian/repos/community-any/PKGBUILD
(from rev 972527, python-debian/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-debian/repos/community-any/PKGBUILD (from rev 972527, python-debian/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-07-06 01:09:31 UTC (rev 972528)
@@ -0,0 +1,32 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Justin Vreeland <vreeland.justin at gmail.com>
+# Contributor: Mike Javorski (javmorin) <mike.javorski gmail com>
+# Contributor: Johannes Dewender arch at JonnyJD dot net
+
+pkgname=python-debian
+pkgver=0.1.40
+pkgrel=2
+pkgdesc='Python module to work with Debian-related data formats'
+arch=('any')
+url='https://salsa.debian.org/python-debian-team/python-debian'
+license=('GPL')
+depends=('python-chardet' 'python-six')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('20eed9ed09faab36d6223e9e980e77c8eb1ea8f886f8829bf290b9e8dc4cae8ccd69b0699be9e8e39522c4e71641129e0aae41bc5b25e7e7e30e33c4e64775b5')
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ rm lib/debian/tests/test_deb{822,file}.py # remove failing tests .. for now
+ python3 -m unittest discover --verbose lib/
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
More information about the arch-commits
mailing list