summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingbei Li2017-06-13 22:23:41 +0800
committerJingbei Li2017-06-13 22:23:41 +0800
commit1352c9799a103e4dbdac60c5f45df2a816e9791c (patch)
tree66959b119fe0e07595eb515d737d7d1bc4d7ecbe
downloadaur-1352c9799a103e4dbdac60c5f45df2a816e9791c.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD36
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..83e92e8b231
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Tue Jun 13 14:23:28 UTC 2017
+pkgbase = python-ruamel-yaml-hg
+ pkgdesc = YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order
+ pkgver = 0.15.6.r1.498e40e91a0c
+ pkgrel = 1
+ url = https://bitbucket.org/ruamel/yaml
+ arch = i686
+ arch = x86_64
+ groups = devel
+ license = MIT
+ makedepends = python-pip
+ makedepends = mercurial
+ depends = python
+ provides = python-ruamel-yaml
+ conflicts = python-ruamel-yaml-hg
+ source = hg+https://bitbucket.org/ruamel/yaml
+ md5sums = SKIP
+
+pkgname = python-ruamel-yaml-hg
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9711aca2db6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Jingbei Li <i@jingbei.li>
+
+pkgname=python-ruamel-yaml-hg
+_hgname=yaml
+pkgver=0.15.6.r1.498e40e91a0c
+pkgrel=1
+pkgdesc="YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order"
+arch=('i686' 'x86_64')
+url="https://bitbucket.org/ruamel/yaml"
+license=('MIT')
+groups=('devel')
+depends=('python')
+makedepends=('python-pip' 'mercurial')
+provides=('python-ruamel-yaml')
+conflicts=('python-ruamel-yaml-hg')
+source=("hg+$url")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${_hgname}"
+ hg log -r . --template '{latesttag}.r{latesttagdistance}.{node|short}\n'
+}
+
+build() {
+ _pkgver=${pkgver/.r*/}
+ cd $srcdir
+ [ ! -f ruamel.yaml-$_pkgver.tar.gz ] && wget -O ruamel.yaml-$_pkgver.tar.gz "https://pypi.io/packages/source/r/ruamel.yaml/ruamel.yaml-$_pkgver.tar.gz"
+ tar zxvf ruamel.yaml-$_pkgver.tar.gz
+ cp ruamel.yaml-$_pkgver/setup.py $_hgname
+}
+
+package() {
+ cd "$srcdir/$_hgname"
+ pip install . --root="$pkgdir"
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}