aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb4112de4cc03c9eac6405f01eb108c5e5cdcb73 (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
# Maintainer: Markus Plangg <mksplg at gmail.com>
pkgname=docker-gc-git
pkgver=r135.ff0b648
pkgrel=1
pkgdesc='A simple Docker container and image garbage collection script'
arch=('any')
url='https://github.com/spotify/docker-gc'
license=('Apache')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/spotify/docker-gc.git')
md5sums=('SKIP')

depends=('bash')
makedepends=('git')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  install -D -m755 "${pkgname%-git}"/docker-gc "$pkgdir/usr/bin/docker-gc"
  install -d -m755 "$pkgdir"/var/lib/docker-gc
}