[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Tue Dec 15 20:20:10 UTC 2020


    Date: Tuesday, December 15, 2020 @ 20:20:08
  Author: felixonmars
Revision: 776168

addpkg: python-parse-type 0.5.6-1

Added:
  python-parse-type/
  python-parse-type/repos/
  python-parse-type/trunk/
  python-parse-type/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Added: python-parse-type/trunk/PKGBUILD
===================================================================
--- python-parse-type/trunk/PKGBUILD	                        (rev 0)
+++ python-parse-type/trunk/PKGBUILD	2020-12-15 20:20:08 UTC (rev 776168)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-parse-type
+pkgver=0.5.6
+pkgrel=1
+pkgdesc="Simplifies to build parse types based on the parse module"
+url="https://github.com/jenisys/parse_type"
+license=('BSD')
+arch=('any')
+depends=('python-parse' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-html')
+source=("https://github.com/jenisys/parse_type/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('6729af4383baceea48cf0bbd73e7e3f580cfbb867965814ba354ea5de6794583782c929557f6f1c7f8bd45703a69b2f890455cfd749690f851f1853562da0c40')
+
+build() {
+  cd parse_type-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd parse_type-$pkgver
+  pytest
+}
+
+package() {
+  cd parse_type-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list