summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6112fe29e7b55c57e5c1f0442193a2a4f181c954 (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
32
33
34
35
36
37
# Maintainer: Brian Gisseler <gissf1@gmail.com>
pkgname=mutagen-compose-git
pkgver=r162.9474213
pkgrel=1
pkgdesc="mutagen-compose from mutagen.io - Docker Compose with Mutagen integration"
arch=('any')
url="https://github.com/mutagen-io/mutagen-compose"
license=('MIT')
source=('git+https://github.com/mutagen-io/mutagen-compose')
makedepends=('git')
depends=('go>=1.11' 'git' 'docker-compose' 'mutagen.io-bin')
sha256sums=('SKIP')

#prepare() {}

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

build() {
  cd "$srcdir"/mutagen-compose
  go run scripts/build.go || return $?
}

check() {
  cd "$srcdir"/mutagen-compose
  build/mutagen-compose --help 2> /dev/null || return $?
}

package() {
  cd "$srcdir"/mutagen-compose
  install -Dm755 build/mutagen-compose $pkgdir/usr/bin/mutagen-compose
  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
  install -Dm644 README.md $pkgdir/usr/share/doc/$pkgname/README.md
  install -Dm644 SECURITY.md $pkgdir/usr/share/doc/$pkgname/SECURITY.md
}