diff options
author | jorgeajimenezl | 2022-05-04 13:45:08 +0000 |
---|---|---|
committer | jorgeajimenezl | 2022-05-04 13:45:08 +0000 |
commit | 8be15d943818cb6d90619cc84b16a0463295bfb1 (patch) | |
tree | cd68ef5f205f89680406aec96707c41408a65731 | |
download | aur-8be15d943818cb6d90619cc84b16a0463295bfb1.tar.gz |
Update AUR package
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4807f10ae94d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = proxyswarm + pkgdesc = Lightweight proxy that allows redirect HTTP(S) traffic through a proxy. + pkgver = 0.1.5 + pkgrel = 1 + url = https://github.com/jorgeajimenezl/proxyswarm + arch = x86_64 + license = MIT + makedepends = git + makedepends = cargo + provides = proxyswarm + source = proxyswarm-0.1.5::git+https://github.com/jorgeajimenezl/proxyswarm.git + sha1sums = SKIP + +pkgname = proxyswarm diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9911a45cdc25 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Jorge Alejandro Jimenez Luna <jorgeajimenezl17@gmail.com> + +pkgname=proxyswarm +pkgver=0.1.5 +pkgrel=1 +pkgdesc="Lightweight proxy that allows redirect HTTP(S) traffic through a proxy." +arch=('x86_64') +url="https://github.com/jorgeajimenezl/proxyswarm" +license=('MIT') +depends=() +makedepends=('git' 'cargo') + +provides=("$pkgname") +source=("$pkgname-$pkgver::git+https://github.com/jorgeajimenezl/$pkgname.git") +sha1sums=('SKIP') + +build() { + export RUSTUP_TOOLCHAIN=stable + cd "${srcdir}/$pkgname-$pkgver" + git checkout tags/v$pkgver -b $pkgver + cargo build --release --all-features +} + +package() { + cd "${srcdir}/$pkgname-$pkgver" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" + install -Dm0755 -t "$pkgdir/etc/" "$pkgname.conf" + install -Dm0755 -t "$pkgdir/usr/lib/systemd/system/" "$pkgname.service" +} + +post_install() { + echo "REMEMBER: Edit the configuration file /etc/$pkgname.conf" +} |