aboutsummaryrefslogblamecommitdiffstats
path: root/community/ccnet/APKBUILD
blob: be7a17274c28f23f6fb1b277b39ed98ca55133af (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                                   
            
        






                                                                                           
                                                       







































                                                                                                            


                                                                                                                                                                 
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ccnet
pkgver=4.2.6
pkgrel=0
pkgdesc="framework for writing networked applications in C"
url="https://github.com/haiwen/ccnet/"
arch="all"
license="GPL3"
makedepends="autoconf automake bash glib-dev jansson-dev openssl-dev libevent-dev
             libsearpc-dev libtool libzdb-dev python-dev sqlite-dev util-linux-dev vala"
source="$pkgname-$pkgver.tar.gz::https://github.com/haiwen/ccnet/archive/v${pkgver}.tar.gz"
subpackages="$pkgname-dev py-$pkgname:py $pkgname-libs"

_builddir="${srcdir}/${pkgname}-${pkgver}"

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

build() {
	cd "${_builddir}"
	./autogen.sh
	./configure \
                --prefix=/usr \
                --sysconfdir=/etc \
                --mandir=/usr/share/man \
                --infodir=/usr/share/info \
		--enable-python \
		--enable-server
	make || return 1
}

package() {
	cd "${_builddir}"
	make DESTDIR="${pkgdir}" install || return 1
	rm "${pkgdir}"/usr/lib/libccnet.la
}

py() {  
        arch="noarch"                                                                                 
        cd "$_builddir"                 
        pkgdesc="$pkgname python bindings"
        install -d "$subpkgdir"/usr/lib
        mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/                                                  
}

md5sums="41ccfa7ed98a33536ed23802ce4f3afc  ccnet-4.2.6.tar.gz"
sha256sums="c9ef7a803713f1fc9248a6ecf202238f8d9904de6ffe957c4344119e3657556c  ccnet-4.2.6.tar.gz"
sha512sums="5aef8fab630b65f679b22d3b029e46cdd6473aab38896457553aaa722cc452310a66e689bb71751b9a81555c3111d6d79b73d355a056eeaee5a6242ed23a2625  ccnet-4.2.6.tar.gz"