blob: a8fa7cc92b55ab649ca74f1083fae833c0e30654 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Maintainer: Winston Astrachan <winston dot astrachan at gmail dot com>
pkgname=wireguard-vanity-keygen
pkgver=0.1.1
pkgrel=1
pkgdesc='WireGuard vanity key generator'
arch=('any')
url='https://github.com/axllent/wireguard-vanity-keygen'
license=('MIT')
depends=('glibc')
makedepends=('go>=1.11')
source=("${pkgname}-${pkgver}::https://github.com/axllent/wireguard-vanity-keygen/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('efd915c549e6cc312ef472dbf854aaf7b6b0129157948c0c9a4fc8e6739c6094')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# this build process now mirrors the ci build process used by wireguard-vanity-keygen
# after the project's makefile was deleted from wireguard-vanity-keygen in 0.0.7
# https://github.com/axllent/wireguard-vanity-keygen/blob/0.0.7/.github/workflows/release-build.yml#L25-L37
go build -ldflags "-w -X main.appVersion=${pkgver}" -o ${pkgname}
}
package() {
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}
|