diff options
author | svalo | 2023-11-06 11:23:23 +0100 |
---|---|---|
committer | svalo | 2023-11-06 11:23:23 +0100 |
commit | 071f0dd778e2373cccb19feb1d3e8062e00dcfe4 (patch) | |
tree | 7d634facf6b7610465135ab2349ff347874d0297 | |
download | aur-crt.tar.gz |
First version of package
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9bdaaa87575d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = crt + pkgdesc = CLI tool to check Certificate Transparency logs of a domain name + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/cemulus/crt + arch = x86_64 + license = APACHE + makedepends = go + source = https://github.com/cemulus/crt/archive/refs/tags/v0.1.0.tar.gz + sha256sums = c1ec11b291b2c46c4427afcacf7b76a61bbf7e8b14fa9f7f286a86ad56e793ce + +pkgname = crt diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0adb8979f041 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: svalo <code@valo.space> + +pkgname=crt +pkgver=0.1.0 +pkgrel=1 +pkgdesc='CLI tool to check Certificate Transparency logs of a domain name' +arch=('x86_64') +url="https://github.com/cemulus/crt" +license=('APACHE') +makedepends=('go') +source=("${url}/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('c1ec11b291b2c46c4427afcacf7b76a61bbf7e8b14fa9f7f286a86ad56e793ce') + +prepare(){ + cd "$pkgname-$pkgver" + mkdir -p build/ +} + +build() { + cd "$pkgname-$pkgver" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build -o build +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname +} |