diff options
author | otreblan | 2020-07-23 18:32:41 -0500 |
---|---|---|
committer | otreblan | 2020-07-23 18:32:41 -0500 |
commit | 701ff262279454f0f1e0cc89199b96cf64528676 (patch) | |
tree | 3a6a97b43c18474af29c803e97d345dfccfb02b1 | |
download | aur-701ff262279454f0f1e0cc89199b96cf64528676.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 16 | ||||
-rw-r--r-- | PKGBUILD | 36 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..de3430c108d9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-gql + pkgdesc = Python GraphQL client + pkgver = v3.0.0a1.r1.g8fc378d + pkgrel = 1 + url = https://github.com/graphql-python/gql + arch = any + license = MIT + makedepends = python-setuptools + makedepends = git + depends = python-six + depends = python-graphql-core + depends = python-promise + depends = python-requests + source = python-gql-git::git+https://github.com/graphql-python/gql.git + sha256sums = SKIP + +pkgname = python-gql-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b1c12bef7b26 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +# create by https://github.com/iamcco/coc-gitignore (Thu Jul 23 2020 18:32:19 GMT-0500 (hora estándar de Perú)) +# ArchLinuxPackages.gitignore: +*.tar +*.tar.* +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +pkg/ +src/ +*-git/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1a3f4b5aa11f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Otreblan <otreblain@gmail.com> + +pkgname='python-gql-git' +pkgbase="${pkgname%-git}" +pkgver=v3.0.0a1.r1.g8fc378d +pkgrel=1 +pkgdesc="Python GraphQL client" +arch=('any') +url="https://github.com/graphql-python/gql" +license=('MIT') +depends=('python-six' 'python-graphql-core' 'python-promise' 'python-requests') +makedepends=('python-setuptools' 'git') +source=("$pkgname::git+$url.git") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + ( set -o pipefail + git describe --tags 2>/dev/null | sed 's/^v-//;s/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "$srcdir/$pkgname" + + python setup.py build +} + +package() { + cd "$srcdir/$pkgname" + + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |