[arch-commits] Commit in docker-compose/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Jul 23 15:39:16 UTC 2018


    Date: Monday, July 23, 2018 @ 15:39:16
  Author: felixonmars
Revision: 363044

archrelease: copy trunk to community-staging-any

Added:
  docker-compose/repos/community-staging-any/
  docker-compose/repos/community-staging-any/PKGBUILD
    (from rev 363043, docker-compose/trunk/PKGBUILD)

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Copied: docker-compose/repos/community-staging-any/PKGBUILD (from rev 363043, docker-compose/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-23 15:39:16 UTC (rev 363044)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Andrew Crerar <crerar at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Iwan Timmer <irtimmer at gmail.com>
+# Contributor: Vincent Demeester <vincent at sbr.io>
+# Contributor: Josh VanderLinden <arch at cloudlery.com>
+
+pkgname=docker-compose
+pkgver=1.22.0
+pkgrel=2
+pkgdesc="Fast, isolated development environments using Docker"
+arch=('any')
+url="https://www.docker.com/"
+license=("Apache")
+depends=('python-cached-property' 'python-docopt' 'python-yaml' 'python-requests'
+         'python-texttable' 'python-websocket-client' 'python-docker' 'python-dockerpty'
+         'python-six' 'python-jsonschema' 'python-setuptools' 'docker')
+checkdepends=('python-pytest-runner' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/docker/compose/archive/$pkgver.tar.gz")
+sha512sums=('eccef2165221fcfdac089ffd3bd0795d08d8c6f7158709dbc2fc83a6d6e9466af4b73c0c7d24a751c6b546b4219e10dfc96cd41e13e7ebc676da603c97b7620e')
+
+prepare() {
+  cd compose-$pkgver
+
+  # Remove upper bound on requires
+  sed -i 's/==/>=/g' requirements.txt
+  sed -i "s/, < .*',$/',/" setup.py
+}
+
+build() {
+  cd compose-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+  # TODO: need a running docker daemon to test
+
+  cd compose-$pkgver
+  # python setup.py install --root="$PWD/tmp_install" --optimize=1
+  # PATH="$PWD/tmp_install/usr/bin:$PATH" PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages:$PYTHONPATH" python setup.py pytest
+}
+
+package() {
+  cd compose-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 contrib/completion/bash/docker-compose      "$pkgdir"/usr/share/bash-completion/completions/docker-compose
+  install -Dm644 contrib/completion/fish/docker-compose.fish "$pkgdir"/usr/share/fish/completions/docker-compose.fish
+  install -Dm644 contrib/completion/zsh/_docker-compose      "$pkgdir"/usr/share/zsh/site-functions/_docker-compose
+}



More information about the arch-commits mailing list