updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / glib2-systemtap / PKGBUILD
blob944078841129819c493547db87aed177f057bf24
1 # Submitter:  Brad Arrington <bradla8@yahoo.com>
2 # Maintainer:  Brad Arrington <bradla8@yahoo.com>
4 pkgbase="glib2-systemtap"
5 pkgname=glib2-systemtap
6 pkgver=2.28.6
7 pkgrel=1
8 pkgdesc="Common C routines used by GTK+ and other libs"
9 url="http://www.gtk.org/"
10 arch=(i686 x86_64)
11 license=('LGPL')
12 depends=('pcre>=8.02' 'kernel26-debug-utrace')
13 makedepends=('pkgconfig' 'python2')
14 options=('!libtool' '!docs')
15 conflicts=('glib2')
16 source=(http://ftp.gnome.org/pub/GNOME/sources/glib/2.28/glib-${pkgver}.tar.bz2
17         glib2.sh
18         glib2.csh)
19 sha256sums=('557fb7c39d21b9359fbac51fd6b0b883bc97a2561c0166eef993a4078312f578'
20             '9456872cdedcc639fb679448d74b85b0facf81033e27157d2861b991823b5a2a'
21             '8d5626ffa361304ad3696493c0ef041d0ab10c857f6ef32116b3e2878ecf89e3')
23 build() {
24   cd "${srcdir}/glib-${pkgver}"
25   ./configure --prefix=/usr \
26       --sysconfdir=/etc \
27       --enable-systemtap \
28       --with-pcre=system \
29       --disable-fam
30   make
33 package() {
34   cd "${srcdir}/glib-${pkgver}"
35   sed -i 's/libglib-2.0.so.0.2800.6/usr\/lib\/libglib-2.0.so.0.2800.6/g' glib/glib.stp
36   sed -i 's/libgobject-2.0.so.0.2800.6/usr\/lib\/libgobject-2.0.so.0.2800.6/g' gobject/gobject.stp
37   make DESTDIR="${pkgdir}" install
39   install -d "${pkgdir}/etc/profile.d"
40   install -m755 "${srcdir}/glib2.sh" "${pkgdir}/etc/profile.d/"
41   install -m755 "${srcdir}/glib2.csh" "${pkgdir}/etc/profile.d/"
43   for _i in "${pkgdir}/etc/bash_completion.d/"*; do
44       chmod -x "${_i}"
45   done