|
@@ -1,79 +1,40 @@
|
|
|
-# Maintainer: Moritz Maxeiner <moritz@ucworks.org>
|
|
|
|
|
# Contributor: Aaron Lindsay <aaron@aclindsay.com>
|
|
# Contributor: Aaron Lindsay <aaron@aclindsay.com>
|
|
|
|
|
+# Maintainer: Edvinas Valatka <edacval@gmail.com>
|
|
|
|
|
|
|
|
-# Name of the Software your PKGBUILD will install - should be unique. See PKGBUILD#pkgname
|
|
|
|
|
pkgname=ccnet
|
|
pkgname=ccnet
|
|
|
-
|
|
|
|
|
-# The version number for the software
|
|
|
|
|
-pkgver=1.4.2
|
|
|
|
|
-_seafilever=4.3.4
|
|
|
|
|
-
|
|
|
|
|
-#The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase
|
|
|
|
|
-pkgrel=16
|
|
|
|
|
-
|
|
|
|
|
-# The description of the package, should be about 80 characters long (one line)
|
|
|
|
|
|
|
+pkgver=4.4.2
|
|
|
|
|
+pkgrel=1
|
|
|
pkgdesc="A framework for writing networked applications in C."
|
|
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' 'armv7h' 'armv6h')
|
|
arch=('i686' 'x86_64' 'armv7h' 'armv6h')
|
|
|
-
|
|
|
|
|
-# The official website for the software your PKGBUILD will install
|
|
|
|
|
url="https://github.com/haiwen/ccnet/"
|
|
url="https://github.com/haiwen/ccnet/"
|
|
|
-
|
|
|
|
|
-# The License that the software is released under. See PKGBUILD#license
|
|
|
|
|
license=('custom')
|
|
license=('custom')
|
|
|
|
|
+depends=('libevent' 'libzdb' 'libsearpc>=3.0.7' 'jansson' 'libldap' 'python2')
|
|
|
|
|
+makedepends=('vala' 'pacman>=4.1')
|
|
|
|
|
+options=('!makeflags')
|
|
|
|
|
|
|
|
-# Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator
|
|
|
|
|
-depends=('libevent>=2.0' 'libzdb>=2.10.2' 'libsearpc>=1.2.2' 'jansson>=2.2.1' 'libldap' 'python2>=2.6')
|
|
|
|
|
-
|
|
|
|
|
-# Packages that must be installed to build the software, but at not necessary to run it
|
|
|
|
|
-makedepends=('vala>=0.8' 'pacman>=4.1')
|
|
|
|
|
-
|
|
|
|
|
-# Optional packages that extend the software's functionality
|
|
|
|
|
-optdepends=()
|
|
|
|
|
-
|
|
|
|
|
-# 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=("https://github.com/haiwen/ccnet/archive/v${_seafilever}.tar.gz"
|
|
|
|
|
|
|
+source=("${pkgname}-v${pkgver}.tar.gz::https://github.com/haiwen/${pkgname}/archive/v${pkgver}.tar.gz"
|
|
|
"https://raw.githubusercontent.com/haiwen/ccnet/master/COPYRIGHT"
|
|
"https://raw.githubusercontent.com/haiwen/ccnet/master/COPYRIGHT"
|
|
|
"libccnet.pc.patch"
|
|
"libccnet.pc.patch"
|
|
|
- "0001-Add-autoconfiguration-for-libjansson.patch")
|
|
|
|
|
-
|
|
|
|
|
-configure_ccnet() {
|
|
|
|
|
- ./autogen.sh
|
|
|
|
|
- CFLAGS="$CFLAGS -lpthread" ./configure --enable-server --enable-ldap --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'
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ "autoconfiguration-for-libjansson.patch")
|
|
|
|
|
|
|
|
prepare () {
|
|
prepare () {
|
|
|
- cd "$srcdir/$pkgname-$_seafilever"
|
|
|
|
|
|
|
+ cd "$srcdir/$pkgname-$pkgver"
|
|
|
patch -p1 -i $srcdir/libccnet.pc.patch
|
|
patch -p1 -i $srcdir/libccnet.pc.patch
|
|
|
- patch -p1 -i $srcdir/0001-Add-autoconfiguration-for-libjansson.patch
|
|
|
|
|
|
|
+ patch -p1 -i $srcdir/autoconfiguration-for-libjansson.patch
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
build () {
|
|
build () {
|
|
|
- cd "$srcdir/$pkgname-$_seafilever"
|
|
|
|
|
- configure_ccnet
|
|
|
|
|
|
|
+ cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
+ ./autogen.sh
|
|
|
|
|
+ CFLAGS="$CFLAGS -lpthread" ./configure --enable-server --enable-ldap --prefix=/usr PYTHON=/usr/bin/python2
|
|
|
make -j1
|
|
make -j1
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
package () {
|
|
package () {
|
|
|
- #install library and header files
|
|
|
|
|
- cd "$srcdir/$pkgname-$_seafilever"
|
|
|
|
|
- make DESTDIR="$pkgdir/" install
|
|
|
|
|
-
|
|
|
|
|
- #copy license over
|
|
|
|
|
- mkdir -p $pkgdir/usr/share/licenses/$pkgname
|
|
|
|
|
- cp $srcdir/COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/
|
|
|
|
|
|
|
+ cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
+ make DESTDIR="$pkgdir" install
|
|
|
|
|
+ mkdir -p $pkgdir/usr/share/licenses/$pkgname
|
|
|
|
|
+ cp COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/
|
|
|
}
|
|
}
|
|
|
sha256sums=('138d6de92388440ce378fc923c50674b80f823e3d2396254dc6c60da5daf2a09'
|
|
sha256sums=('138d6de92388440ce378fc923c50674b80f823e3d2396254dc6c60da5daf2a09'
|
|
|
'c07aeccf581c255e60acbddcc6af90290e0d6354e6ec0ee1987b82845d3d57ac'
|
|
'c07aeccf581c255e60acbddcc6af90290e0d6354e6ec0ee1987b82845d3d57ac'
|