APKBUILD 1.27 KB
Newer Older
Stuart Cardall's avatar
Stuart Cardall committed
1 2 3 4
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=6tunnel
pkgver=0.12
5
pkgrel=1
Stuart Cardall's avatar
Stuart Cardall committed
6 7 8
pkgdesc="TCP proxy for non-IPv6 applications"
url="http://toxygen.net/6tunnel"
arch="all"
9
license="GPL-2.0"
Stuart Cardall's avatar
Stuart Cardall committed
10 11
makedepends="automake autoconf"
subpackages="$pkgname-doc"
12 13 14 15
source="$pkgname-$pkgver.tar.gz::https://github.com/wojtekka/$pkgname/archive/$pkgver.tar.gz
	fix-help.patch
	add-runit.patch
	"
Stuart Cardall's avatar
Stuart Cardall committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
builddir="$srcdir/"$pkgname-$pkgver

build() {
	cd "$builddir"
	autoreconf --install
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
33 34
	mkdir -p "$pkgdir"/usr/share/6tunnel
	install -m644 contrib/* "$pkgdir"/usr/share/6tunnel || return 1
Stuart Cardall's avatar
Stuart Cardall committed
35 36
}

37 38 39
sha512sums="8d6148fec0d10b4eaad0c7b646a38b1e1f2dd2ca5f4c7b34e99fea67e5dde8a6b8d150a0bca777902dccb468f4ddf78d1fc6e3a73581314492de1ecccbb03e30  6tunnel-0.12.tar.gz
20e6dbce54287fabdac12969ea63df598c4ed4e8a546b3dab71538ec0a942188ab7d0c91212e78f213f4fff953cf93f2462a1a858e01738ad0fce9d75ead088c  fix-help.patch
a4544ce649ddc1a2855733116a9320f544d185f8dd04a4b7edd0a86ebc5bc0ef3e19f44841a92bbd3752afd257bb05e6b30f9669f75f8ed0f2ace15c0f44e3da  add-runit.patch"