commit 314876ae7263e5eba8b465fa6cf94cf6577bda17 Author: Aaron Lindsay Date: Fri Feb 1 07:03:46 2013 -0500 Initial commit: 1.2.0-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..1d3d100 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer: Aaron Lindsay + +# Name of the Software your PKGBUILD will install - should be unique. See PKGBUILD#pkgname +pkgname=ccnet + +# The version number for the software +pkgver=1.2.0 + +#The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase +pkgrel=1 + +# The description of the package, should be about 80 characters long (one line) +pkgdesc="A framework for writing networked applications in C." + +# The type of processor this software can build and work on. See PKGBUILD#arch +arch=('i686' 'x86_64') + +# The official website for the software your PKGBUILD will install +url="https://github.com/haiwen/ccnet/" + +# The License that the software is released under. See PKGBUILD#license +license=('custom') + +# Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator +depends=('libzdb>=2.10.2' 'libsearpc>=1.0.1') + +# Packages that must be installed to build the software, but at not necessary to run it +makedepends=('vala>=0.8' 'libmysqlclient') + +# Optional packages that extend the software's functionality +optdepends=('libmysqlclient') + +# List of Package names that this PKGBUILD provides. Put modified packages that will be installed here. +provides=() + +# Change the default behavior of makepkg see PKGBUILD#options +options= + +source=("http://seafile.com.cn/downloads/ccnet-latest.tar.gz" + "https://raw.github.com/haiwen/ccnet/master/COPYRIGHT" + "libccnet.pc.patch") +sha256sums=('035875a630f8c23657b86e28bf4ea7c2b4b30d016c8e4c648bef5ef96e12f31d' + 'e788cf52e18ae6f284f07669954dfbde8e8567e57191c14944b9513b18c4e985' + '66c3b02c3981db6a80819e0ae103bedadf8dfdf81405a7f75a9cba714acf973f') + +prepare () { + cd "$srcdir/$pkgname-$pkgver" + patch -p1 -i $srcdir/libccnet.pc.patch +} + +build () { + prepare + cd "$srcdir/$pkgname-$pkgver" + ./configure --enable-server --prefix=/usr PYTHON=/usr/bin/python2 + make +} + +package () { + #install library and header files + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install + + #copy license over + mkdir -p $pkgdir/usr/share/licenses/$pkgname + cp $srcdir/COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/ +} diff --git a/libccnet.pc.patch b/libccnet.pc.patch new file mode 100644 index 0000000..dcc95e4 --- /dev/null +++ b/libccnet.pc.patch @@ -0,0 +1,8 @@ +--- a/libccnet.pc.in 2013-01-10 01:35:24.000000000 -0500 ++++ b/libccnet.pc.in 2013-01-19 11:31:50.479301798 -0500 +@@ -1,4 +1,4 @@ +-prefix=(DESTDIR)@prefix@ ++prefix=@prefix@ + exec_prefix=@exec_prefix@ + libdir=@libdir@ + includedir=@includedir@