diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-10 13:38:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-10 13:38:42 +0000 |
commit | edcd2fc03278ac8ff6c3cb1c98e33805ada8ce93 (patch) | |
tree | f17b6ac796d464a759e5ddb6e5eb3a64327d4c4f /community/ccnet/APKBUILD | |
parent | bf4cf79b81f0ddb0c7c95b8d791ec48a2698f692 (diff) | |
download | aports-edcd2fc03278ac8ff6c3cb1c98e33805ada8ce93.tar.bz2 aports-edcd2fc03278ac8ff6c3cb1c98e33805ada8ce93.tar.xz |
community/seafile (and deps): move from main
Diffstat (limited to 'community/ccnet/APKBUILD')
-rw-r--r-- | community/ccnet/APKBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/community/ccnet/APKBUILD b/community/ccnet/APKBUILD new file mode 100644 index 0000000000..be7a17274c --- /dev/null +++ b/community/ccnet/APKBUILD @@ -0,0 +1,56 @@ +# 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" |