# vim: set syn=sh ai et sw=2 st=2 ts=2 tw=0:
#Packager: JRD <jrd@enialis.net>

pkgname=python-gnome-keyring
pkgver=2.32.0
pkgrel=1cp
source=(ftp://ftp.gnome.org/pub/GNOME/sources/gnome-python-desktop/$(echo $pkgver|cut -d. -f1-2)/gnome-python-desktop-$pkgver.tar.bz2)
sourcetemplate=http://people.salixos.org/jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/
docs=("authors" "install" "readme" "copying.lgpl" "changelog" "maintainers" "news")
url=ftp://ftp.gnome.org/pub/GNOME/sources/gnome-python-desktop

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (gnome-keyring for python)"
"Python binding for accessing gnome-keyring."
"Will not work (yet) with mate-keyring."
)

build() {
  cd $SRC/gnome-python-desktop-$pkgver || return 1
  # waf script is not fully functionnal with building only a part of the project
  #./waf configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --enable-modules=gnomekeyring || return 1
  # ./waf build -j $numjobs || return 1
  #./waf install --destdir=$PKG || return 1
  ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux --disable-allbindings --enable-gnomekeyring || return 1
  make -j $numjobs || return 1
  make install DESTDIR=$PKG || return 1
  rm -r $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig
}