Date: Monday, September 19, 2016 @ 09:29:36
  Author: jgc
Revision: 276695

upgpkg: glib2 2.49.7+6+g3602f93-1

Modified:
  glib2/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++++++++++++++++-------------
 1 file changed, 20 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-09-19 06:01:01 UTC (rev 276694)
+++ PKGBUILD    2016-09-19 09:29:36 UTC (rev 276695)
@@ -3,37 +3,46 @@
 
 pkgbase=glib2
 pkgname=(glib2 glib2-docs)
-pkgver=2.48.2
+pkgver=2.49.7+6+g3602f93
 pkgrel=1
 pkgdesc="Low level core library"
 url="http://www.gtk.org/";
 arch=(i686 x86_64)
-makedepends=('pkg-config' 'python' 'libxslt' 'docbook-xml' 'pcre' 'libffi' 
'libelf')
-source=(http://ftp.gnome.org/pub/GNOME/sources/glib/${pkgver:0:4}/glib-$pkgver.tar.xz
+makedepends=('gettext' 'gtk-doc' 'libffi' 'pcre' 'zlib' 'shared-mime-info' 
'python' 'libelf' 'git')
+_commit=3602f934855a484c5eec28f12a6535e14de1778d
+source=("git://git.gnome.org/glib#commit=$_commit"
         glib-compile-schemas.hook
         gio-querymodules.hook
         revert-warn-glib-compile-schemas.patch)
-sha256sums=('f25e751589cb1a58826eac24fbd4186cda4518af772806b666a3f91f66e6d3f4'
+sha256sums=('SKIP'
             'e1123a5d85d2445faac33f6dae1085fdd620d83279a4e130a83fe38db52b62b3'
             '5ba204a2686304b1454d401a39a9d27d09dd25e4529664e3fd565be3d439f8b6'
             '049240975cd2f1c88fbe7deb28af14d4ec7d2640495f7ca8980d873bb710cc97')
 
+pkgver() {
+  cd glib
+  git describe --tags | sed 's/-/+/g'
+}
+
 prepare() {
-  cd glib-$pkgver
+  cd glib
   patch -Rp1 -i ../revert-warn-glib-compile-schemas.patch
+  NOCONFIGURE=1 ./autogen.sh
 }
   
 build() {
-  cd glib-$pkgver
+  cd glib
   ./configure --prefix=/usr --libdir=/usr/lib \
       --sysconfdir=/etc \
       --with-pcre=system \
-      --disable-fam
+      --disable-fam \
+      --enable-gtk-doc
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 
 check() {
-  cd glib-$pkgver
+  cd glib
   # Takes an effing long time
   #make -k check || :
 }
@@ -45,14 +54,11 @@
   options=('!docs' '!emptydirs')
   license=('LGPL')
 
-  cd glib-$pkgver
+  cd glib
   make completiondir=/usr/share/bash-completion/completions DESTDIR="$pkgdir" 
install
 
   chmod -x "$pkgdir"/usr/share/bash-completion/completions/*
 
-  # Our gdb does not ship the required python modules, so remove it
-  rm -r "$pkgdir/usr/share/gdb/"
-  
   # install hooks
   install -dm755 "$pkgdir"/usr/share/libalpm/hooks/
   install -m644 "$srcdir"/{glib-compile-schemas,gio-querymodules}.hook 
"$pkgdir"/usr/share/libalpm/hooks/
@@ -65,8 +71,9 @@
   license=('custom')
   options=('docs' '!emptydirs')
   
-  cd glib-$pkgver/docs
+  cd glib/docs
   make DESTDIR="${pkgdir}" install
+  rm -rf "${pkgdir}/usr/share/man"
   install -m755 -d "${pkgdir}/usr/share/licenses/glib2-docs"
   install -m644 reference/COPYING "${pkgdir}/usr/share/licenses/glib2-docs/"
 }

Reply via email to