-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD-git
77 lines (65 loc) · 2.21 KB
/
PKGBUILD-git
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Maintainer: Gaël PORTAY <[email protected]>
pkgname=(dosh-git docker-shell-git dosh-cqfd-git docker-cqfd-git)
pkgver=master
pkgrel=1
pkgdesc='Docker shell'
arch=('any')
url="https://github.com/gportay/$pkgname"
license=('LGPL')
depends=('docker')
makedepends=('asciidoctor')
checkdepends=('shellcheck')
source=("$pkgname::git+https://github.com/gportay/${pkgname%-git}.git"
"bash-completion-cqfd-git::https://raw.githubusercontent.com/savoirfairelinux/cqfd/master/bash-completion")
sha256sums=('SKIP'
'6e0e050b2e98625fa657f2d5b8834505e3e4d0839c215b418c4c5e33bb5c5c4f')
validpgpkeys=('8F3491E60E62695ED780AC672FA122CA0501CA71')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
make doc SHELL="/bin/sh"
}
check() {
cd "$srcdir/$pkgname"
make -k check
}
package_dosh-git() {
optdepends+=(docker-shell)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" PREFIX="/usr" install install-doc
install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_docker-shell-git() {
pkgdesc='Docker CLI plugin for dosh'
rdepends=(dosh)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
cd "$srcdir/dosh-git"
make DESTDIR="$pkgdir/" PREFIX="/usr" install-cli-plugin
install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_dosh-cqfd-git() {
pkgdesc='A tool to wrap commands in controlled Docker containers using dosh.'
rdepends=(dosh)
provides=("cqfd")
conflicts=("cqfd")
cd "$srcdir/dosh-git"
make DESTDIR="$pkgdir/" PREFIX="/usr" install-cqfd
completionsdir="$(pkg-config --define-variable=prefix=/usr --variable=completionsdir bash-completion)"
install -D -m 644 ${startdir}/bash-completion-cqfd-git "$pkgdir$completionsdir/cqfd"
install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_docker-cqfd-git() {
pkgdesc='Docker CLI plugin for cqfd'
rdepends=(cqfd)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
cd "$srcdir/dosh-git"
make DESTDIR="$pkgdir/" PREFIX="/usr" install-cli-plugin-cqfd
install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}