summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eca82c9e40c5a0427c59f4cae632fb2ed1d73229 (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
34
35
36
37
38
39
40
# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>
# Original Package: Kerrick Staley <mail@kerrickstaley.com>

pkgname=gst-python-git
pkgver=1.3.0.1.1277.16979ed
pkgrel=1
pkgdesc='GStreamer GObject Introspection overrides for Python 3'
arch=('i686' 'x86_64' 'armv6h')
license=('LGPL')
depends=('gstreamer' 'python' 'gobject-introspection')
url='http://gstreamer.freedesktop.org/modules/gst-python.html'

provides=(gst-python)
conflicts=(gst-python)

source=('git://anongit.freedesktop.org/gstreamer/gst-python')
md5sums=('SKIP')

gitname='gst-python' 

pkgver() {
  cd $gitname
  version=$(grep AC_INIT configure.ac | sed 's/AC_INIT(GStreamer GObject Introspection overrides for Python , //' | sed 's/,//')
  hash=$(git log --pretty=format:'%h' -n 1)
  revision=$(git rev-list --count HEAD)
  
  echo $version.$revision.$hash
}

build() {
    cd $gitname
    ./autogen.sh --prefix=/usr PYTHON=/usr/bin/python3
    make
}

package() {
    cd $gitname
    make DESTDIR="$pkgdir" install
}