[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Sat May 25 17:23:54 UTC 2019


    Date: Saturday, May 25, 2019 @ 17:23:53
  Author: felixonmars
Revision: 470704

addpkg: python-tomlkit 0.5.3-1

Added:
  python-tomlkit/
  python-tomlkit/repos/
  python-tomlkit/trunk/
  python-tomlkit/trunk/PKGBUILD

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

Added: python-tomlkit/trunk/PKGBUILD
===================================================================
--- python-tomlkit/trunk/PKGBUILD	                        (rev 0)
+++ python-tomlkit/trunk/PKGBUILD	2019-05-25 17:23:53 UTC (rev 470704)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tomlkit
+pkgver=0.5.3
+pkgrel=1
+pkgdesc="Style-preserving TOML library for Python"
+url="https://github.com/sdispater/tomlkit"
+license=('MIT')
+arch=('x86_64')
+depends=('python')
+checkdepends=('python-pytest')
+source=("https://pypi.io/packages/source/t/tomlkit/tomlkit-$pkgver.tar.gz")
+sha512sums=('90939b380fb8c58a1825c45740d599f116adf5075b1efb327ceb72353b1d1b3d6d6b960ed7673d46af586fc3ed56a866a6a8eb8dfc2a78ea128b5b7f214b0b55')
+
+build() {
+  cd tomlkit-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd tomlkit-$pkgver
+  # TODO: package a pyproject to setup converter and use git source
+  # python -m pytest
+}
+
+package() {
+  cd tomlkit-$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