summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5c769247afcf29035aa6a0e8c9edb7ae3d2fdf4 (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
# Maintainer: Philippe Proulx <pproulx@efficios.com>

pkgname=('python-babeltrace')
pkgver=1.5.7
pkgrel=1
pkgdesc='Babeltrace Python bindings'
arch=(i686 x86_64)
url="http://diamon.org/babeltrace"
license=(LGPL2.1 GPL2 MIT)
source=("http://www.efficios.com/files/babeltrace/babeltrace-${pkgver}.tar.bz2")
makedepends=('swig>=2.0.0')
depends=('babeltrace>=1.5.7' 'python')
options=('!libtool')
sha1sums=(b62b501479c59ae2cbfca14eca7bdbafdee8d683)

build()
{
    cd "${srcdir}/babeltrace-${pkgver}"
    PYTHON=/usr/bin/python PYTHON_CONFIG=/usr/bin/python-config ./configure --prefix=/usr --disable-debug-info --enable-python-bindings
    make
}

package() {
    cd "${srcdir}/babeltrace-${pkgver}/bindings/python"
    make install DESTDIR="${pkgdir}"
    cd "${srcdir}/babeltrace-${pkgver}"
    install -m0644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}