summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorimlonghao2020-01-29 07:29:23 +0000
committerimlonghao2020-01-29 07:29:23 +0000
commit7fe228e79805f14b2987a6bebd4e37b96e5031e1 (patch)
tree37e3232b1757178a42052e71629e3b2b4d5c5e3a
downloadaur-7fe228e79805f14b2987a6bebd4e37b96e5031e1.tar.gz
Add package gosec-bin
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD16
2 files changed, 27 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bf04635c84a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,11 @@
+pkgbase = gosec-bin
+ pkgdesc = Inspects source code for security problems by scanning the Go AST
+ pkgver = 2.1.0
+ pkgrel = 1
+ url = https://github.com/securego/gosec
+ arch = x86_64
+ license = Apache
+ source = https://github.com/securego/gosec/releases/download/v2.1.0/gosec_2.1.0_linux_amd64.tar.gz
+ sha256sums = 9b6e0b71b86cc79844e4c519b6d3c73701d2b71f4fd80f3b97aad93af7cb0b0e
+
+pkgname = gosec-bin
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..87185bef8ea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,16 @@
+# Maintainer: Hao Long <aur@esd.cc>
+
+pkgname=gosec-bin
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="Inspects source code for security problems by scanning the Go AST"
+arch=("x86_64")
+url="https://github.com/securego/gosec"
+license=("Apache")
+source=("https://github.com/securego/gosec/releases/download/v${pkgver}/gosec_${pkgver}_linux_amd64.tar.gz")
+sha256sums=('9b6e0b71b86cc79844e4c519b6d3c73701d2b71f4fd80f3b97aad93af7cb0b0e')
+
+package() {
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm755 gosec ${pkgdir}/usr/bin/gosec
+}