aboutsummaryrefslogtreecommitdiffstats
path: root/testing/3proxy/APKBUILD
blob: 1e6ff8810223dbf44754d31b6fc4d858f09786b0 (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
37
# Contributor: sillysausage <sillysausage@privatedemail.net>
# Maintainer:
pkgname=3proxy
pkgver=0.9.4
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/3proxy/3proxy/archive/$pkgver.tar.gz
	$pkgname.initd
	"

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

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

}

sha512sums="
d3316f6ee1217e580ce593a7bfd9d76672487a89862f247373b0acf3ea207887c758168e33b25db9fc974063deab0826c20d455cab2536d03eee49d8bddda6b5  3proxy-0.9.4.tar.gz
043fa5784623e29961ae92f5370598d420e55da6d04f6421b585ac050694982765d6b57ee0276a10738bc8ad0e49ddc4edf6ef288bb9c68e7da11b572066688e  3proxy.initd
"