summaryrefslogtreecommitdiff
path: root/community/python2-systemd/PKGBUILD
blob: 8b420df5e5108882f9c1c8ff52a00754250efcca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id: PKGBUILD 106496 2014-03-05 02:09:28Z dwallace $
# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com
pkgname=python2-systemd
_pkgname=systemd
pkgver=210
pkgrel=2
pkgdesc="Python2 bindings for systemd"
arch=('x86_64' 'i686')
url="http://www.freedesktop.org/wiki/Software/systemd/"
license=('GPL')
depends=('python2' "systemd>=$pkgver" 'python2-lxml')
makedepends=('intltool' 'gperf')
source=("http://www.freedesktop.org/software/$_pkgname/$_pkgname-$pkgver.tar.xz")
md5sums=('03efddf8c9eca36d4d590f9967e7e818')


build() {
	cd "$_pkgname-$pkgver"
    ./configure \
        --libexecdir=/usr/lib \
        --disable-manpages \
        --with-sysvinit-path=/etc/rc.d/init.d \
        --with-rc-local-script-path-start=/etc/rc.d/rc.local \
        PYTHON=python2
	make
}

package(){
	cd "$_pkgname-$pkgver"
    make DESTDIR=$srcdir/root install
    install -dm755 $pkgdir/usr/lib/
    cp -dpr --no-preserve=ownership $srcdir/root/usr/lib/python2.7/ $pkgdir/usr/lib/python2.7/
}