summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD28
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d73285da470
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = netctl-obfuscate
+ pkgdesc = A tool wrapping wpa_passphrase to convert plaintext keys in netctl config files to a PSK.
+ pkgver = v0.1.0
+ pkgrel = 1
+ url = https://github.com/gryffyn/netctl-obfuscate
+ arch = any
+ license = MIT
+ makedepends = go
+ makedepends = git
+ source = netctl-obfuscate::git+https://github.com/gryffyn/netctl-obfuscate#tag=v0.1.0
+ sha256sums = SKIP
+
+pkgname = netctl-obfuscate
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d0c83e25acd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: gryffyn <aur at evan dot mp>
+
+pkgname=netctl-obfuscate
+pkgver=v0.1.0
+pkgrel=1
+pkgdesc="A tool wrapping wpa_passphrase to convert plaintext keys in netctl config files to a PSK."
+arch=('any')
+url="https://github.com/gryffyn/netctl-obfuscate"
+license=("MIT")
+makedepends=('go' 'git')
+source=("${pkgname}"::"git+https://github.com/gryffyn/${pkgname}#tag=${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+ cd "$pkgname"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ mkdir build
+ go build -o build/${pkgname}
+}
+
+package() {
+ cd "$pkgname"
+ install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
+}