Bladeren bron

Initial import: 1.2.2

Moritz Maxeiner 10 jaren geleden
commit
836ec4f4cd
3 gewijzigde bestanden met toevoegingen van 104 en 0 verwijderingen
  1. 22 0
      .SRCINFO
  2. 74 0
      PKGBUILD
  3. 8 0
      libsearpc.pc.patch

+ 22 - 0
.SRCINFO

@@ -0,0 +1,22 @@
+pkgbase = libsearpc
+	pkgdesc = A simple and easy-to-use C language RPC framework (including both server side & client side) based on GObject System.
+	pkgver = 1.2.2
+	pkgrel = 8
+	url = https://github.com/haiwen/libsearpc/
+	arch = i686
+	arch = x86_64
+	arch = armv6h
+	arch = armv7h
+	license = GPLv3
+	depends = glib2>=2.16.0
+	depends = pacman>=4.1
+	depends = jansson>=2.2.1
+	depends = libtool>=1.4
+	optdepends = python2-simplejson
+	source = https://github.com/haiwen/libsearpc/archive/v3.0-latest.tar.gz
+	source = libsearpc.pc.patch
+	sha256sums = 56313771e0ad7dc075c4590b6a75daeb3939937b21716d82c91be2612133b8cd
+	sha256sums = aec39a303aaebc0777a22d8c53367f52f619654d63f62b362d75c1c599e632f4
+
+pkgname = libsearpc
+

+ 74 - 0
PKGBUILD

@@ -0,0 +1,74 @@
+# Maintainer: Moritz Maxeiner <moritz@ucworks.org>
+
+# Contributor: Aaron Lindsay <aaron@aclindsay.com>
+
+# Name of the Software your PKGBUILD will install - should be unique. See PKGBUILD#pkgname
+pkgname=libsearpc
+
+# The version number for the software
+pkgver=1.2.2
+_seafilever=3.0-latest
+
+#The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase
+pkgrel=8
+
+# The description of the package, should be about 80 characters long (one line)
+pkgdesc="A simple and easy-to-use C language RPC framework (including both server side & client side) based on GObject System."
+
+# The type of processor this software can build and work on. See PKGBUILD#arch
+arch=('i686' 'x86_64' 'armv6h' 'armv7h')
+
+# The official website for the software your PKGBUILD will install
+url="https://github.com/haiwen/libsearpc/"
+
+# The License that the software is released under. See PKGBUILD#license
+license=('GPLv3')
+
+# Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator
+depends=('glib2>=2.16.0' 'pacman>=4.1' 'jansson>=2.2.1' 'libtool>=1.4')
+
+# Packages that must be installed to build the software, but at not necessary to run it
+makedepends=()
+
+# Optional packages that extend the software's functionality
+optdepends=('python2-simplejson')
+
+# 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/libsearpc/archive/v${_seafilever}.tar.gz"
+	"libsearpc.pc.patch")
+
+configure_libsearpc() {
+	./autogen.sh
+	./configure --prefix=/usr PYTHON=/usr/bin/python2
+}
+
+pkgver() {
+	cd "$srcdir/$pkgname-$_seafilever"
+	configure_libsearpc &> /dev/null
+	grep "PACKAGE_VERSION" Makefile | sed 's/PACKAGE_VERSION.*=[ \t]\+\([0-9\.]\+\)[ \t]*/\1/g'
+}
+
+prepare () {
+	pkgver
+	cd "$srcdir/$pkgname-$_seafilever"
+	patch -p1 -i $srcdir/libsearpc.pc.patch 
+}
+
+build () {
+	cd "$srcdir/$pkgname-$_seafilever"
+	configure_libsearpc
+	make -j1
+}
+
+package () {
+	#install library and header files
+	cd "$srcdir/$pkgname-$_seafilever"
+	make DESTDIR="$pkgdir/" install
+}
+sha256sums=('56313771e0ad7dc075c4590b6a75daeb3939937b21716d82c91be2612133b8cd'
+            'aec39a303aaebc0777a22d8c53367f52f619654d63f62b362d75c1c599e632f4')

+ 8 - 0
libsearpc.pc.patch

@@ -0,0 +1,8 @@
+--- a/libsearpc.pc.in	2013-01-10 01:35:24.000000000 -0500
++++ b/libsearpc.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@