sbcl rebuild
[arch-packages.git] / pygobject2 / trunk / PKGBUILD
blob1461a05698739fa8ed58fd3c79e36d530b0a3973
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
4 pkgbase=pygobject2
5 pkgname=(python2-gobject2)
6 pkgver=2.28.7
7 pkgrel=5
8 pkgdesc="Legacy Python 2 bindings for GObject"
9 url="https://wiki.gnome.org/Projects/PyGObject"
10 arch=(x86_64)
11 license=(LGPL)
12 depends=(glib2 python2)
13 makedepends=(git)
14 provides=("pygobject2-devel=$pkgver-$pkgrel")
15 conflicts=('pygobject2-devel')
16 replaces=('pygobject2-devel<=2.28.7-3')
17 _commit=c9594b6a91e6ca2086fedec2ed8249e0a9c029fc  # tags/PYGOBJECT_2_28_7^0
18 source=("git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit")
19 sha256sums=('SKIP')
21 pkgver() {
22   cd pygobject
23   git describe --tags | sed 's/^PYGOBJECT_//;s/_/./g;s/-/+/g'
26 prepare() {
27   cd pygobject
28   find . \( -name '*.py' -o -name '*.py.in' \) -exec sed -i '1s|python$|&2|' {} +
29   autoreconf -fvi
32 build() (
33   cd pygobject
34   CPPFLAGS+=' -Wno-deprecated-declarations'
35   ./configure --prefix=/usr --disable-introspection PYTHON=/usr/bin/python2
36   sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
37   make
40 package_python2-gobject2() {
41   cd pygobject
42   make DESTDIR="$pkgdir" install
43   rm -r "$pkgdir/usr/share/gtk-doc"