### this file is sourced not run

# source: step

pkgname=gtk2-theme-engine-murrine32
repo=$pkgname
hash=f96e446ef3266bb4f9a3e4f08c8d8af4ad7f2ade
hash7=${hash#???????}; hash7=${hash%$hash7}

PKGVER=2016.03.21
PKGBUILD=1
PKGARCH=i686

TARBALL=gtk2-theme-murrine-$PKGVER.tar.gz
#SRC_URL=https://github.com/GNOME/murrine/archive/f96e446ef3266bb4f9a3e4f08c8d8af4ad7f2ade.tar.gz
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$TARBALL
MD5SUM=8f62223f2c68a3cf6501b46eb5794eb7
BUNDLE=

SLACKREQ='gtk2_32'
SLACKDESC="$pkgname: $pkgname 0.98.2-$hash7 $PKGVER (GTK-2 theme engine)
$pkgname:
$pkgname: Murrine is a GTK-2 theme engine.
$pkgname:
$pkgname: This is a 32-bit version of the library.
$pkgname:
$pkgname: License: LGPLv2.1 and LGPLv3
$pkgname:
$pkgname:
$pkgname:
$pkgname:
"

### default pkg_download
pkg_prepare() {
  pkg_prepare_default &&
  cd tmp/murrine* &&
  patch -Np1 -i ../pkg/pango_cairo_update_layout.patch
}

### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

pkg_build() {
  local ver
  cd /tmp/murrine* &&
  # patch
  {
  # my automake version
  ver=$(ls -vr "$(which automake)-"* | head -1)
  ver=${ver##*-}
  sed -e "s/\(automake\|aclocal\)-1.11/\1-$ver/g" -i autogen.sh
  } &&
  ./autogen.sh &&
  ./configure --prefix=/usr --libdir=/usr/lib &&
  make &&
  make install &&
  pkg_build_slackdesc
}

# vim:ft=sh:

