diff options
author | Olivier Biesmans | 2016-07-12 20:25:37 +1000 |
---|---|---|
committer | Olivier Biesmans | 2016-07-12 20:25:37 +1000 |
commit | 75827170eef3adb9f909c0e8fea3f298506e8431 (patch) | |
tree | 8f5a5fd25dd4c7e82dd4716daec5a764da91b188 | |
download | aur-tlsobs-git.tar.gz |
[tlsobs-git] Create package
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cd7de8678690 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = tlsobs-git + pkgdesc = An observatory for TLS configurations, X509 certificates, and more. + pkgver = 20160712+9a8a92b + pkgrel = 1 + url = https://github.com/mozilla/tls-observatory + arch = x86_64 + arch = i686 + license = MPL + makedepends = go + options = !strip + options = !emptydirs + source = tls-observatory::git+https://github.com/mozilla/tls-observatory + sha256sums = SKIP + +pkgname = tlsobs-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..74681ed81784 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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: |