aboutsummaryrefslogblamecommitdiffstats
path: root/main/serf/APKBUILD
blob: dde7af7824c3fe705a90e8437b99b77e677a16dd (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
            
        
                                                           
                             
          
                    
                                                                               
                          

                                                                 
         

         


                                                               


           
                                                 
                                                  

 
                                                                                                                                                                
                                                                                                                                                  
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=serf
pkgver=1.3.9
pkgrel=7
pkgdesc="High-Performance Asynchronous HTTP Client Library"
url="http://serf.apache.org/"
arch="all"
license="Apache-2.0"
makedepends="apr-util-dev apr-dev openssl1.1-compat-dev zlib-dev scons chrpath"
subpackages="$pkgname-dev"
source="https://archive.apache.org/dist/serf/serf-$pkgver.tar.bz2
	scons-py3.patch
	"

build() {
	ln -s /usr/bin/python3 python
	export PATH="$PATH:."
	scons CFLAGS="$CFLAGS" LINKFLAGS="$LDFLAGS" PREFIX=/usr
}

package() {
	scons install --install-sandbox="$pkgdir"
	chrpath -d "$pkgdir"/usr/lib/libserf-1.so*
}

sha512sums="9f5418d991840a08d293d1ecba70cd9534a207696d002f22dbe62354e7b005955112a0d144a76c89c7f7ad3b4c882e54974441fafa0c09c4aa25c49c021ca75d  serf-1.3.9.tar.bz2
61547b360d92c29569d60c1e137f009c214e95cffd2edd20a7374da5b659c258d34759252d6ad6958eb7da0aa58fbb374153ee92323f0b84dc4b350f2ede17a1  scons-py3.patch"