summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraysky2020-10-28 11:20:55 -0400
committergraysky2020-10-28 11:20:55 -0400
commit96c472d2e83aafd00f81e228be585dd41bfeada4 (patch)
treecf44841a8dad59344ae3e9f94b7f350d0feb8790
downloadaur-96c472d2e83aafd00f81e228be585dd41bfeada4.tar.gz
first commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD23
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..34eeb77e94f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = wireguard-vanity-address
+ pkgdesc = Generate Wireguard keypairs with a given prefix string
+ pkgver = 0.4.0
+ pkgrel = 1
+ url = https://github.com/warner/wireguard-vanity-address
+ arch = x86_64
+ license = MIT
+ makedepends = rust
+ depends = gcc-libs
+ source = wireguard-vanity-address-0.4.0.tar.gz::https://github.com/warner/wireguard-vanity-address/archive/v0.4.0.tar.gz
+ b2sums = 8bc6fedd3a17b40b4d0018ad8f1fb8c067345480794d16c980cb354b733e130af930fa137d6b02e0c1e7a2bd0716a6a7134416711f9b681b90c212f2529c0794
+
+pkgname = wireguard-vanity-address
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..860a5d7b153
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: graysky <graysky AT archlinux DOT us>
+
+pkgname=wireguard-vanity-address
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="Generate Wireguard keypairs with a given prefix string"
+arch=(x86_64)
+url="https://github.com/warner/wireguard-vanity-address"
+license=(MIT)
+makedepends=(rust)
+depends=(gcc-libs)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/warner/$pkgname/archive/v$pkgver.tar.gz")
+b2sums=('8bc6fedd3a17b40b4d0018ad8f1fb8c067345480794d16c980cb354b733e130af930fa137d6b02e0c1e7a2bd0716a6a7134416711f9b681b90c212f2529c0794')
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release --locked
+}
+
+package() {
+ install -Dm755 "$srcdir/$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}