summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorfancy2020-04-22 04:21:35 +0800
committerfancy2020-04-22 04:21:35 +0800
commit497006df0208701430741f7d71ef6c3c251953e2 (patch)
tree144e02cfd11f951775ccf156f9da3f888ee5fb00 /PKGBUILD
downloadaur-497006df0208701430741f7d71ef6c3c251953e2.tar.gz
first commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1abf84ea8c6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Fancy Zhang <springzfx@gmail.com>
+pkgbase=cgproxy
+pkgname=cgproxy
+pkgver=1.0
+pkgrel=1
+pkgdesc="A transparent proxy program with cgroup2, like proxychains"
+arch=('x86_64')
+url=""
+license=('')
+groups=('')
+makedepends=('cmake')
+depends=()
+options=('!strip' '!emptydirs')
+# source_x86_64=("cgproxy.tar.gz")
+source_x86_64=("https://github.com/springzfx/cgproxy/archive/v$pkgver.tar.gz")
+md5sums_x86_64=('9697f8eab3b441bd7b066f948c2c2bf8')
+
+backup=('etc/cgproxy.conf')
+
+build(){
+ cd ${srcdir}/$pkgname-$pkgver
+ mkdir -p build && cd build && cmake .. && make
+}
+package_cgproxy(){
+ cd ${srcdir}/$pkgname-$pkgver/build
+ make DESTDIR=$pkgdir install
+}
+