Skip to content

Commit

Permalink
Add package for wireguard-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Etn40ff committed Sep 27, 2023
1 parent b8a60d3 commit c6b6abf
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions package/wireguard-tools/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# Copyright (c) 2031 The Toltec Contributors
# SPDX-License-Identifier: MIT

pkgnames=(wireguard-tools)
pkgdesc="Fast, modern, secure VPN tunnel"
url=https://www.wireguard.com
pkgver=1.0.20210914-1
timestamp=2021-02-23T00:00Z
section=kernel
maintainer="Salvatore Stella <etn45p4m@gmail.com>"
license=GPL-2.0-only
image=base:v3.1
source=("https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-${pkgver%-*}.tar.xz")

sha256sums=(97ff31489217bb265b7ae850d3d0f335ab07d2652ba1feec88b734bc96bd05ac)

prepare() {
# The symlink at src/wg-quick/wg needs something to point to
touch "$srcdir/src/wg"
}

build() {
make -C "$srcdir/src" PLATFORM=linux "CC=${CROSS_COMPILE}cc"
}

package() {
install -D -t "$pkgdir/opt/bin" "$srcdir/src/wg"
install -D "$srcdir/src/wg-quick/linux.bash" "$pkgdir/opt/bin/wg-quick"
}

0 comments on commit c6b6abf

Please sign in to comment.