blob: 74681ed81784d95d685138027ef9c7ab658b1244 (
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
38
39
40
41
42
43
44
|
# Maintainer: Olivier Biesmans <o.archlinux@biesmans.fr>
_gopkgname=github.com/mozilla/tls-observatory/tlsobs
_pkgname=tlsobs
pkgname=$_pkgname-git
pkgver=20160712+9a8a92b
pkgrel=1
pkgdesc="An observatory for TLS configurations, X509 certificates, and more."
arch=('x86_64' 'i686')
url="https://github.com/mozilla/tls-observatory"
license=('MPL')
makedepends=('go')
depends=()
options=('!strip' '!emptydirs')
source=("tls-observatory::git+https://github.com/mozilla/tls-observatory")
sha256sums=('SKIP')
pkgver() {
cd "tls-observatory"
# mimic BUILDREV for Makefile
printf "%s+%s" "$(date +%Y%m%d)" "$(git log --pretty=format:'%h' -n 1)"
}
prepare() {
_gopkgpath="$srcdir/gopath/src/github.com/mozilla/tls-observatory"
if [[ ! -L "$_gopkgpath" ]]; then
mkdir -p $(dirname $_gopkgpath)
ln -s "$srcdir/tls-observatory" "$_gopkgpath"
fi
}
build() {
#cd "$_pkgname"
#make tlsobs
GOPATH="$(pwd)/gopath" go build -o "$srcdir/build/$_pkgname" "$_gopkgname"
#GOPATH="$srcdir/gopath" make tlsobs
}
package() {
install -Dm755 "$srcdir/build/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
install -Dm644 "$srcdir/tls-observatory/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
|