aboutsummaryrefslogtreecommitdiffstats
path: root/testing/3proxy/APKBUILD
blob: 6f8e6a524bbe2981bbaa0f76f11fe8e8edee2551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: sillysausage <sillysausage@privatedemail.net>
# Maintainer:
pkgname=3proxy
pkgver=0.8.11
pkgrel=0
pkgdesc="Really tiny cross-platform proxy servers set"
url="https://3proxy.ru"
arch="all"
license="Apache-2.0 GPL-2.0-or-later LGPL-2.1-or-later"
pkgusers="3proxy"
pkggroups="3proxy"
options="!check" # No test suite
makedepends="linux-headers"
install="3proxy.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/z3APA3A/$pkgname/archive/$pkgver.tar.gz
        $pkgname.initd
	"

build() {
	cd "$builddir"
	make -f Makefile.Linux prefix="/usr"
}

package() {
	cd "$builddir"
	make -f Makefile.Linux DESTDIR="$pkgdir" prefix="/usr" install
	install -Dm755 "$srcdir"/3proxy.initd "$pkgdir"/etc/init.d/3proxy
	mv "$pkgdir"/usr/etc/3proxy "$pkgdir"/etc/3proxy
	chown -R 3proxy:3proxy "$pkgdir"/etc/3proxy
	install -Dm644 copying "$pkgdir"/usr/share/licenses/$pkgname/COPYING

}

sha512sums="82da185a80885f8e076e6c02bf32e44fe34aa836d18e10f126a3bdda3540465803e71259a0e740c6f23769f873b022636593c69aaf760235cba57c0d890e9c23  3proxy-0.8.11.tar.gz
5425792d0babc75221b5a35996a1fa47a6d0b9a435edde7b63e0344b7d58ab96b18f1c5fb28e798df36cb342d9793d530dbcdd0102cc5fb04a70ca525c924576  3proxy.initd"