[arch-commits] Commit in python-tomlkit/repos (community-any community-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat May 25 17:46:03 UTC 2019
Date: Saturday, May 25, 2019 @ 17:46:00
Author: felixonmars
Revision: 470723
archrelease: copy trunk to community-any
Added:
python-tomlkit/repos/community-any/
python-tomlkit/repos/community-any/PKGBUILD
(from rev 470722, python-tomlkit/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-tomlkit/repos/community-any/PKGBUILD (from rev 470722, python-tomlkit/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2019-05-25 17:46:00 UTC (rev 470723)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tomlkit
+pkgver=0.5.3
+pkgrel=2
+pkgdesc="Style-preserving TOML library for Python"
+url="https://github.com/sdispater/tomlkit"
+license=('MIT')
+arch=('any')
+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