diff options
Diffstat (limited to 'unmaintained/ccnet/APKBUILD')
-rw-r--r-- | unmaintained/ccnet/APKBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/unmaintained/ccnet/APKBUILD b/unmaintained/ccnet/APKBUILD new file mode 100644 index 0000000000..3ad85e7718 --- /dev/null +++ b/unmaintained/ccnet/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: <xmingske@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=ccnet +pkgver=5.0.7 +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="14f2cc30c2655aadaddeaec48a5d0a36 ccnet-5.0.7.tar.gz" +sha256sums="1e1c670a85619b174328a15925a050c7a8b323fecd13434992332f5c15e05de1 ccnet-5.0.7.tar.gz" +sha512sums="31b980cf0e5187f6769c05c97ede77e4d6ad798ec3ea0fc2c7679e8ef92982683b772811db5435b0be2686b19e8b7dc8f8c8a8f15e5d89ae1de44842e2000954 ccnet-5.0.7.tar.gz" |