aboutsummaryrefslogtreecommitdiffstats
path: root/main/ccnet/APKBUILD
blob: 9c80378aa660d6a25eace32b11cf2afd82738e14 (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
53
54
55
56
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ccnet
pkgver=4.1.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="8ba75a82a8954c4f9141f0dd6af7f890  ccnet-4.1.6.tar.gz"
sha256sums="1ee2445e7ac733a0aa4a770a62c5696402fa98e3261afd7441dec1ef3c2f7064  ccnet-4.1.6.tar.gz"
sha512sums="445d291dd844dd57e16c0225c1a11e8220293a636d4be47d9a989f0778daab30050e5db5f78fe043e9228135830e3f4b93176377dcc3cf9878b9a3f6f05b96fd  ccnet-4.1.6.tar.gz"