summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cdfdf433e01608fb8ebc6db8acfc20800903ccaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Bitals <me at bitals dot xyz>
pkgname=docker-autocompose-git
pkgver=r71.2e6a55f
pkgrel=2
pkgdesc='Generate a docker-compose yaml definition from a running container'
arch=('any')
url='https://github.com/Red5d/docker-autocompose'
license=('unknown')
depends=(
    'python-pyaml>=20.4.0'
    'python-docker>=4.4.4'
    'python-six>=1.16.0'
    'python-importlib-metadata'
    'python-setuptools'
)
conflicts=('docker-autocompose')
source=($pkgname::git+https://github.com/Red5d/docker-autocompose.git)
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
  )
}

package() {
    cd "$pkgname"
    python setup.py install --root "$pkgdir" --optimize=1
}