APKBUILD 1.79 KB
Newer Older
xming's avatar
xming committed
1 2 3
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ccnet
Carlo Landmeter's avatar
Carlo Landmeter committed
4
pkgver=4.2.5
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
xming's avatar
xming committed
6 7 8 9 10 11 12
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"
Natanael Copa's avatar
Natanael Copa committed
13
subpackages="$pkgname-dev py-$pkgname:py $pkgname-libs"
xming's avatar
xming committed
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 53

_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/                                                  
}

Carlo Landmeter's avatar
Carlo Landmeter committed
54 55 56
md5sums="26a1679d8510e6c94fc14816b306ce47  ccnet-4.2.5.tar.gz"
sha256sums="50d06d3e8c9d9097de16365e8d6bde84ffb7e7d3c496513fe95ba9301fcfdf97  ccnet-4.2.5.tar.gz"
sha512sums="d06074e69d9aebc4bd7570947644b1656a50a70983fa40d34ad279040f85c4a15a42f9399203361493653513dd83744c73a863b5d0b9207395daf9d659c1f895  ccnet-4.2.5.tar.gz"