summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGI_Jack2020-02-05 20:18:11 -0500
committerGI_Jack2020-02-05 20:18:11 -0500
commit03dd018978a577861b223f72c2fbfbf38869e146 (patch)
treec6a91197a19394839646454b09f9f1e485f7faac
downloadaur-python-pygexf-git.tar.gz
intial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD29
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d1c0f21c4bb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-pygexf-git
+ pkgdesc = A python library to generate gexf file format
+ pkgver = r29.4ec08e9
+ pkgrel = 1
+ url = https://github.com/paulgirard/pygexf
+ arch = any
+ license = LGPL
+ makedepends = python-setuptools
+ depends = python
+ provides = python-pygexf
+ conflicts = python-pygexf
+ source = pygexf::git+https://github.com/paulgirard/pygexf.git
+ sha256sums = SKIP
+
+pkgname = python-pygexf-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e2d04d7a5fc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: GI_Jack <GI_Jack@hackermail.com>
+# Release version does not work for some reason
+
+pkgname=python-pygexf-git
+_pkgname=python-pygexf
+_pypiname=pygexf
+pkgver=r29.4ec08e9
+pkgrel=1
+pkgdesc="A python library to generate gexf file format"
+url="https://github.com/paulgirard/pygexf"
+arch=('any')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+license=('LGPL')
+depends=('python')
+makedepends=('python-setuptools')
+source=(${_pypiname}::"git+https://github.com/paulgirard/pygexf.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${_pypiname}"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "$srcdir/${_pypiname}"
+ python setup.py install -O1 --root="${pkgdir}" --prefix=/usr
+}