diff options
author | Mohammadreza Abdollahzadeh | 2024-03-17 23:06:29 +0330 |
---|---|---|
committer | Mohammadreza Abdollahzadeh | 2024-03-17 23:06:29 +0330 |
commit | 5146daf6f58f57af62bdf7d4cb1af8ee07ab3739 (patch) | |
tree | ed168bb7a3e977355b0f613954eadee980d0b725 | |
download | aur-5146daf6f58f57af62bdf7d4cb1af8ee07ab3739.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | warp-plus.service | 11 |
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d93e684177b1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = warp-plus-git + pkgdesc = An open-source implementation of Cloudflare's Warp, enhanced with Psiphon integration. + pkgver = 1.0.4.rc2.r34.efe8b5d + pkgrel = 1 + url = https://github.com/bepass-org/warp-plus + arch = x86_64 + license = MIT + makedepends = git + makedepends = go + provides = warp-plus + conflicts = warp-plus + source = warp-plus::git+https://github.com/bepass-org/warp-plus.git + source = warp-plus.service + sha256sums = SKIP + sha256sums = c15cbcfb161ba08ff882d9f23b90e51a87ca13e2045c64020dd251c49f45dc0d + +pkgname = warp-plus-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..680f615bcbc7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com> +pkgname='warp-plus-git' +pkgver=1.0.4.rc2.r34.efe8b5d +pkgrel=1 +pkgdesc="An open-source implementation of Cloudflare's Warp, enhanced with Psiphon integration." +arch=('x86_64') +url="https://github.com/bepass-org/warp-plus" +license=('MIT') +makedepends=('git' 'go') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("${pkgname%-git}::git+${url}.git" + "${pkgname%-git}.service") +sha256sums=('SKIP' + 'c15cbcfb161ba08ff882d9f23b90e51a87ca13e2045c64020dd251c49f45dc0d') +pkgver() { + cd "${pkgname%-git}" + printf "%s" "$(git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')" +} + +prepare() { + cd "${pkgname%-git}" + go mod tidy +} + +build() { + cd "${pkgname%-git}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -mod=readonly -modcacherw" + + go build -ldflags "-compressdwarf=false -linkmode external" . +} + +package() { + cd "${pkgname%-git}" + install -Dm755 warp-plus "${pkgdir}/usr/bin/${pkgname%-git}" + install -D -t "${pkgdir}/usr/lib/systemd/system/" -m 644 ../"${pkgname%-git}.service" + install -d "${pkgdir}/etc/${pkgname%-git}" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE" +} +# vim:set ts=4 sw=4 et: diff --git a/warp-plus.service b/warp-plus.service new file mode 100644 index 000000000000..b550a8372912 --- /dev/null +++ b/warp-plus.service @@ -0,0 +1,11 @@ +[Unit] +Description=Warp-Plus Service +After=network.target nss-lookup.target + +[Service] +WorkingDirectory=/etc/warp-plus +ExecStart=/usr/bin/warp-plus --gool +ExecStop=/bin/kill -HUP ${MAINPID} + +[Install] +WantedBy=multi-user.target |