summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfancy2020-05-14 11:43:39 +0800
committerfancy2020-05-14 11:43:39 +0800
commitfa252f825a8e0e2849533710bd3b60c24e2df1ea (patch)
tree2279a135d407a4e14edee085841c664dd035f4f0
parent38c13beb2e70ac37fd92a3077c54eb6d484b9196 (diff)
downloadaur-fa252f825a8e0e2849533710bd3b60c24e2df1ea.tar.gz
updated
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD22
2 files changed, 13 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 48e766c9918..9d42ef2c2ff 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = cgproxy
pkgdesc = A transparent proxy program with cgroup2, like proxychains
- pkgver = v3.7.r0.g6c24c68
+ pkgver = v3.7
pkgrel = 1
url = https://github.com/springzfx/cgproxy
arch = x86_64
@@ -8,11 +8,11 @@ pkgbase = cgproxy
license =
makedepends = cmake
depends = systemd
- options = !strip
- options = !emptydirs
+ provides = cgproxy
+ conflicts = cgproxy
backup = etc/cgproxy.conf
- source = cgproxy-git::git+https://github.com/springzfx/cgproxy#branch=master
+ source = cgproxy::git+https://github.com/springzfx/cgproxy#tag=v3.7
md5sums = SKIP
-pkgname = cgproxy-git
+pkgname = cgproxy
diff --git a/PKGBUILD b/PKGBUILD
index 5d95db93bf7..19e1810851c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,6 @@
# Maintainer: Fancy Zhang <springzfx@gmail.com>
-pkgbase=cgproxy
-pkgname=cgproxy-git
-pkgver=v3.7.r0.g6c24c68
+pkgname=cgproxy
+pkgver=v3.7
pkgrel=1
pkgdesc="A transparent proxy program with cgroup2, like proxychains"
arch=('x86_64')
@@ -10,17 +9,11 @@ license=('')
groups=('')
makedepends=('cmake')
depends=('systemd')
-options=('!strip' '!emptydirs')
-source=("${pkgname}::git+https://github.com/springzfx/cgproxy#branch=master")
-md5sums=('SKIP')
+provides=('cgproxy')
+conflicts=('cgproxy')
-pkgver() {
- cd "$pkgname"
- ( set -o pipefail
- git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
- )
-}
+source=("${pkgname}::git+https://github.com/springzfx/cgproxy#tag=${pkgver}")
+md5sums=('SKIP')
backup=('etc/cgproxy.conf')
@@ -28,7 +21,8 @@ build(){
cd "$pkgname"
mkdir -p build && cd build && cmake .. && make
}
-package_cgproxy-git(){
+
+package_cgproxy(){
cd "$pkgname"/build
make DESTDIR=$pkgdir install
}