summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLumaku2021-03-16 10:17:28 +0100
committerLumaku2021-03-16 10:17:28 +0100
commitf05086d0f80f32b03686ef25c0bb9c2af8d113b2 (patch)
tree74d1140e514bde868a1661e118006813861092b8
downloadaur-f05086d0f80f32b03686ef25c0bb9c2af8d113b2.tar.gz
PKGBUILD
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD36
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bfbb06076cc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = python-hyperpyyaml-git
+ pkgdesc = Extensions to YAML syntax for better python interaction.
+ pkgver = 1.0.0.r8
+ pkgrel = 1
+ url = https://github.com/speechbrain/HyperPyYAML
+ arch = any
+ license = Apache 2.0
+ makedepends = git
+ makedepends = python-setuptools
+ depends = python>=3.7
+ depends = python-pyaml
+ depends = python-ruamel-yaml
+ provides = python-hyperpyyaml
+ conflicts = python-hyperpyyaml
+ conflicts = python-hyperpyyaml-git
+ source = python-hyperpyyaml-git::git+https://github.com/speechbrain/HyperPyYAML
+ md5sums = SKIP
+
+pkgname = python-hyperpyyaml-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..17f4eb96134
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Lumaku <lumaku@mailbox.org>
+pkgname=python-hyperpyyaml-git
+pkgver=1.0.0.r8
+pkgrel=1
+pkgdesc='Extensions to YAML syntax for better python interaction.'
+arch=('any')
+url='https://github.com/speechbrain/HyperPyYAML'
+license=('Apache 2.0')
+depends=('python>=3.7' 'python-pyaml' 'python-ruamel-yaml')
+makedepends=('git' 'python-setuptools')
+provides=('python-hyperpyyaml')
+conflicts=("python-hyperpyyaml" "${pkgname}")
+source=(
+ "${pkgname}::git+${url}")
+md5sums=(
+ 'SKIP')
+
+
+pkgver() {
+ cd "${pkgname}"
+ printf "%s.r%s" "$(python setup.py --version)" "$(git rev-list --count HEAD)"
+}
+
+
+build() {
+ cd "${pkgname}"
+ python setup.py build
+}
+
+
+package() {
+ cd "${pkgname}"
+ export PYTHONHASHSEED=0
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+