summaryrefslogblamecommitdiff
path: root/user/serf/APKBUILD
blob: 4ff3c66dd83e69f01437aa548339adb5ee5db24b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17















                                                             


                                    


                  
                                                                                
                                                                 
                                                               
                                                                        





                                                                                                                                                                
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=serf
pkgver=1.3.9
pkgrel=0
pkgdesc="High-performance HTTP library from Apache"
url="https://serf.apache.org/"
arch="all"
license="Apache-2.0"
depends=""
makedepends="apr-dev apr-util-dev openssl-dev scons zlib-dev"
subpackages="$pkgname-dev"
source="https://www.apache.org/dist/serf/serf-$pkgver.tar.bz2
	py3.patch
	"

build() {
	scons PREFIX=/usr -j "$JOBS"
}

check() {
	scons test
}

package() {
	install -D -m644 libserf-1.a "$pkgdir"/usr/lib/libserf-1.a
	install -D -m755 libserf-1.so.1.3.0 "$pkgdir"/usr/lib/libserf-1.so.1.3.0
	ln -s libserf-1.so.1.3.0 "$pkgdir"/usr/lib/libserf-1.so.1
	ln -s libserf-1.so.1.3.0 "$pkgdir"/usr/lib/libserf-1.so
	for _header in serf.h serf_bucket_types.h serf_bucket_util.h; do
		install -D -m644 $_header "$pkgdir"/usr/include/serf-1/$_header
	done
	install -D -m644 serf-1.pc "$pkgdir"/usr/lib/pkgconfig/serf-1.pc
}

sha512sums="9f5418d991840a08d293d1ecba70cd9534a207696d002f22dbe62354e7b005955112a0d144a76c89c7f7ad3b4c882e54974441fafa0c09c4aa25c49c021ca75d  serf-1.3.9.tar.bz2
4f55a30f8e505e757c36debc8e19041dbf824c5708495d9e0338e4bac736445eff72ea60aa9a9bafdcdde9b26e2ffb6c79c39b4e6f6422cffc34d3986e49d1b1  py3.patch"