2013-02-01 07:03:46 -05:00
|
|
|
# Maintainer: Aaron Lindsay <aaron@aclindsay.com>
|
|
|
|
|
|
|
|
# Name of the Software your PKGBUILD will install - should be unique. See PKGBUILD#pkgname
|
|
|
|
pkgname=ccnet
|
|
|
|
|
|
|
|
# The version number for the software
|
2014-01-15 14:13:20 -05:00
|
|
|
pkgver=1.4.0
|
|
|
|
_seafilever=2.1.1
|
2013-02-01 07:03:46 -05:00
|
|
|
|
|
|
|
#The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase
|
2014-01-15 14:18:57 -05:00
|
|
|
pkgrel=2
|
2013-02-01 07:03:46 -05:00
|
|
|
|
|
|
|
# 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
|
2014-01-10 08:44:12 -05:00
|
|
|
arch=('i686' 'x86_64' 'armv7h' 'armv6h')
|
2013-02-01 07:03:46 -05:00
|
|
|
|
|
|
|
# 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
|
2014-01-15 14:18:57 -05:00
|
|
|
depends=('libevent>=2.0' 'libzdb>=2.10.2' 'libsearpc>=1.2.1' 'jansson>=2.2.1')
|
2013-02-01 07:03:46 -05:00
|
|
|
|
|
|
|
# Packages that must be installed to build the software, but at not necessary to run it
|
2013-12-10 07:14:51 -05:00
|
|
|
makedepends=('vala>=0.8' 'pacman>=4.1')
|
2013-02-01 07:03:46 -05:00
|
|
|
|
|
|
|
# Optional packages that extend the software's functionality
|
2013-12-10 07:14:51 -05:00
|
|
|
optdepends=()
|
2013-02-01 07:03:46 -05:00
|
|
|
|
|
|
|
# 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=
|
|
|
|
|
2013-10-30 07:29:25 -04:00
|
|
|
source=("https://github.com/haiwen/ccnet/archive/v${_seafilever}.tar.gz"
|
2013-04-04 07:44:36 -04:00
|
|
|
"https://raw.github.com/haiwen/ccnet/master/COPYRIGHT"
|
2014-01-15 14:13:20 -05:00
|
|
|
"libccnet.pc.patch"
|
|
|
|
"0001-Add-autoconfiguration-for-libjansson.patch")
|
|
|
|
sha256sums=('6882eb1a3066897e4f91fb60a3405b3f58b4b794334deaca73617003f77a7eb0'
|
2013-06-12 23:20:18 -04:00
|
|
|
'7abb45e3e313d37337b088411fa249171f58186ebf951c19ea2bf1390927a0f3'
|
2014-01-15 14:13:20 -05:00
|
|
|
'66c3b02c3981db6a80819e0ae103bedadf8dfdf81405a7f75a9cba714acf973f'
|
|
|
|
'72f8f8fd79c0b570335240e4ef53357bb70f25477b66beddaa445ee27d350674')
|
|
|
|
|
|
|
|
configure_ccnet() {
|
|
|
|
./autogen.sh
|
|
|
|
CFLAGS="-lpthread" ./configure --enable-server --prefix=/usr PYTHON=/usr/bin/python2
|
|
|
|
}
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/$pkgname-$_seafilever"
|
|
|
|
configure_ccnet &> /dev/null
|
|
|
|
grep "PACKAGE_VERSION" Makefile | sed 's/PACKAGE_VERSION.*=[ \t]\+\([0-9\.]\+\)[ \t]*/\1/g'
|
|
|
|
}
|
2013-04-04 07:44:36 -04:00
|
|
|
|
|
|
|
prepare () {
|
2014-01-15 14:13:20 -05:00
|
|
|
cd "$srcdir/$pkgname-$_seafilever"
|
2013-10-30 07:29:25 -04:00
|
|
|
patch -p1 -i $srcdir/libccnet.pc.patch
|
2014-01-15 14:13:20 -05:00
|
|
|
patch -p1 -i $srcdir/0001-Add-autoconfiguration-for-libjansson.patch
|
2013-04-04 07:44:36 -04:00
|
|
|
}
|
2013-02-01 07:03:46 -05:00
|
|
|
|
|
|
|
build () {
|
2014-01-15 14:13:20 -05:00
|
|
|
cd "$srcdir/$pkgname-$_seafilever"
|
|
|
|
configure_ccnet
|
2013-02-26 09:13:01 -05:00
|
|
|
make -j1
|
2013-02-01 07:03:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
package () {
|
|
|
|
#install library and header files
|
2014-01-15 14:13:20 -05:00
|
|
|
cd "$srcdir/$pkgname-$_seafilever"
|
2013-02-01 07:03:46 -05:00
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
|
|
|
|
#copy license over
|
|
|
|
mkdir -p $pkgdir/usr/share/licenses/$pkgname
|
|
|
|
cp $srcdir/COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/
|
|
|
|
}
|