aboutsummaryrefslogtreecommitdiffstats
path: root/testing/asio/APKBUILD
blob: 4e13fe3357d1c1013761589843e2028950bde7d0 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=asio
pkgver=1.10.6
_ver=${pkgver//./-}
pkgrel=0
pkgdesc="A cross-platform C++ library for network programming"
url="https://think-async.com"
arch="all"
license="Boost"
depends=""
depends_dev="boost-dev openssl-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/project/asio/asio/${pkgver}%20%28Stable%29/asio-$pkgver.tar.bz2
	fix-strerror_r.patch
	"

_builddir="$srcdir"/asio-$pkgver
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./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
}

md5sums="85d014a356a6e004cd30ccd4c9b6a5c2  asio-1.10.6.tar.bz2
dfc0d5d1c14ca0a247d835c944e400a6  fix-strerror_r.patch"
sha256sums="e0d71c40a7b1f6c1334008fb279e7361b32a063e020efd21e40d9d8ff037195e  asio-1.10.6.tar.bz2
0b3eb6d74c9dd11e08368da0f9e09446e2383b5fc840e630581fef3672db95ac  fix-strerror_r.patch"
sha512sums="7146e75a378de57daab88e7ba509ae01367ffa0d7c4c90481e221977a6b9f4fd80e9caac5c6b4c27bc7652e44cd210e2c6cabf5681d7c62747df14bbc25e8c23  asio-1.10.6.tar.bz2
a023e305a9efa6b93489374dfe9881c447d748a8d48ff803e0ac7ff1be618460b57de024e79da8c08dab4bcd214cbf2c3991d963eef678ca8dbd48b3c8933a70  fix-strerror_r.patch"