summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorclintval2018-08-12 14:54:50 -0700
committerclintval2018-08-12 14:54:50 -0700
commit9ed9dedb8e3bf84f7bf5e78ba646500b349b3dab (patch)
tree6462bb2cbbbd07ab8f87eb0ab8a223e0feea084c
downloadaur-9ed9dedb8e3bf84f7bf5e78ba646500b349b3dab.tar.gz
First commit for python-tomlkit
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD57
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..805e411975d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = python-tomlkit
+ pkgdesc = Style-preserving TOML library for Python
+ pkgver = 0.4.2
+ pkgrel = 1
+ url = https://github.com/sdispater/tomlkit
+ arch = any
+ license = MIT
+ makedepends = python
+ makedepends = python-setuptools
+ makedepends = python2
+ makedepends = python2-setuptools
+ optdepends = python2-typing
+ options = !emptydirs
+ source = python-tomlkit-0.4.2.tar.gz::https://pypi.io/packages/source/t/tomlkit/tomlkit-0.4.2.tar.gz
+ sha256sums = 4f112445d6e52a038adf23b027ccb11905fdf88976990116e8f7b171b768cedb
+
+pkgname = python-tomlkit
+ depends = python
+
+pkgname = python2-tomlkit
+ depends = python2
+ depends = python2-enum34
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..700d46948f8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: Clint Valentine <valentine.clint@gmail.com>
+
+_name=tomlkit
+pkgbase='python-tomlkit'
+pkgname=('python-tomlkit' 'python2-tomlkit')
+pkgver=0.4.2
+pkgrel=1
+pkgdesc="Style-preserving TOML library for Python"
+arch=('any')
+url=https://github.com/sdispater/"${_name}"
+license=('MIT')
+makedepends=(
+ 'python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
+optdepends=('python2-typing')
+options=(!emptydirs)
+source=("${pkgname}"-"${pkgver}".tar.gz::https://pypi.io/packages/source/"${_name:0:1}"/"${_name}"/"${_name}"-"${pkgver}".tar.gz)
+sha256sums=('4f112445d6e52a038adf23b027ccb11905fdf88976990116e8f7b171b768cedb')
+
+prepare() {
+ cp -a "${_name}"-"${pkgver}"{,-py2}
+}
+
+package() {
+ cd "${srcdir}"/"${_name}"-"${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+}
+
+build(){
+ cd "${srcdir}"/"${_name}"-"${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}"/"${_name}"-"${pkgver}"-py2
+ python2 setup.py build
+}
+
+package_python2-tomlkit() {
+ depends=(
+ 'python2'
+ 'python2-enum34'
+ )
+
+ cd "${_name}"-"${pkgver}"-py2
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+ python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+}
+
+package_python-tomlkit() {
+ depends=(
+ 'python'
+ )
+
+
+ cd "${_name}"-"${pkgver}"
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+ python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+}