# Maintainer: Gore Liu pkgname=docker-systemctl-replacement-git _pkgname=docker-systemctl-replacement pkgver=239.f1093a1 pkgrel=1 pkgdesc="docker systemctl replacement" url='https://github.com/gdraheim/docker-systemctl-replacement' arch=('any') license=('GPL') depends=('python2') source=("${_pkgname}::git+https://github.com/gdraheim/docker-systemctl-replacement") sha512sums=('SKIP') pkgver() { cd "${srcdir}/${_pkgname}" echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" } build() { cd "${srcdir}/${_pkgname}" sed -i 's|#! /usr/bin/python|#! /usr/bin/python2|g' files/docker/systemctl.py } package() { cd "${srcdir}/${_pkgname}" install -Dm755 "files/docker/systemctl.py" "${pkgdir}/usr/bin/systemctl.py" }