#Packager: Richard Lapointe #Former Packager(s): Name #Anything commented out is optional and can be deleted. pkgname=gtkhotkey pkgver=0.2.1 pkgrel=1 #arch=noarch source=("http://launchpad.net/$pkgname/0.2/$pkgver/+download/$pkgname-$pkgver.tar.gz") sourcetemplate=http://people.salixos.org/laprjns/$pkgname/$pkgver/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=https://launchpad.net/gtkhotkey #dotnew=() #CFLAGS= #CXXFLAGS= #options=('noextract') #doinst() { # #} slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| " gtkhotkey (hotkey handling for Gtk apps" "Platform independent hotkey handling for Gtk+ applications" ) build() { cd $startdir/src/$pkgname-$pkgver # doc path fix sed -i '/gtkhotkeydocdir/s/\${prefix}/\${datadir}/g' Makefile.{am,in} # glib2 fix sed -i 's|glib/gquark\.h|glib.h|' src/gtk-hotkey-error.h sed -i 's|glib/gtypes\.h|glib.h|' src/x11/tomboykeybinder.h ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux --disable-static make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg }