[arch-commits] Commit in libteam/trunk (PKGBUILD)
Jan Steffens
heftig at nymeria.archlinux.org
Fri Jul 4 21:08:48 UTC 2014
Date: Friday, July 4, 2014 @ 23:08:48
Author: heftig
Revision: 216516
Add python bindings and service config
Modified:
libteam/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-07-04 20:55:12 UTC (rev 216515)
+++ PKGBUILD 2014-07-04 21:08:48 UTC (rev 216516)
@@ -9,6 +9,7 @@
url="http://libteam.org/"
license=(LGPL2.1)
depends=(libnl libdaemon jansson libdbus bash)
+makedepends=(python python2 swig)
source=($url/files/$pkgname-$pkgver.tar.gz)
sha256sums=('b89e81258f8a8f4abd718ec1c91f85cb66d4d29e4d50095a3d2a4ffd8ce4bf7a')
@@ -16,7 +17,14 @@
cd $pkgname-$pkgver
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--disable-static --libexecdir=/usr/lib
- make -j1
+ make
+
+ cp -aT binding/python binding/python2
+
+ cd binding/python
+ python ./setup.py build
+ cd ../python2
+ python2 ./setup.py build
}
check() {
@@ -27,4 +35,14 @@
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
+
+ install -Dm644 teamd/redhat/systemd/teamd at .service \
+ "$pkgdir/usr/lib/systemd/system/teamd at .service"
+ install -Dm644 teamd/dbus/teamd.conf \
+ "$pkgdir/etc/dbus-1/system.d/teamd.conf"
+
+ cd binding/python
+ python ./setup.py install --root "$pkgdir" -O1
+ cd ../python2
+ python2 ./setup.py install --root "$pkgdir" -O1
}
More information about the arch-commits
mailing list