-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD
64 lines (53 loc) · 1.9 KB
/
PKGBUILD
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
# Maintainer: Gaël PORTAY <[email protected]>
pkgname=(dosh docker-shell dosh-cqfd docker-cqfd)
pkgver=6
pkgrel=1
pkgdesc='Docker shell'
arch=('any')
url="https://github.com/gportay/$pkgname"
license=('LGPL')
depends=('docker')
makedepends=('asciidoctor')
checkdepends=('shellcheck')
source=("https://github.com/gportay/$pkgname/archive/$pkgver.tar.gz"
"bash-completion-cqfd::https://raw.githubusercontent.com/savoirfairelinux/cqfd/v5.4.0/bash-completion")
sha256sums=('915e275ca1314789a895504df4e149f0335b8749e2740da99009f71caaa46a38'
'b231b48d37e72736302b2961ee2ebd392d48796aa4cdf5c84c73f87e5c1607b6')
validpgpkeys=('8F3491E60E62695ED780AC672FA122CA0501CA71')
build() {
cd "$pkgname-$pkgver"
make doc SHELL="/bin/sh"
}
check() {
cd "$pkgname-$pkgver"
make -k check
}
package_dosh() {
optdepends+=(docker-shell)
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" PREFIX="/usr" install install-doc install-bash-completion
install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_docker-shell() {
pkgdesc='Docker CLI plugin for dosh'
rdepends=(dosh)
cd "dosh-$pkgver"
make DESTDIR="$pkgdir/" PREFIX="/usr" install-cli-plugin
install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_dosh-cqfd() {
pkgdesc='A tool to wrap commands in controlled Docker containers using dosh.'
rdepends=(dosh)
cd "dosh-$pkgver"
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 "$pkgdir$completionsdir/cqfd"
install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_docker-cqfd() {
pkgdesc='Docker CLI plugin for cqfd'
rdepends=(cqfd)
cd "dosh-$pkgver"
make DESTDIR="$pkgdir/" PREFIX="/usr" install-cli-plugin-cqfd
install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}