Skip to content

Instantly share code, notes, and snippets.

Created November 17, 2013 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7512375 to your computer and use it in GitHub Desktop.
Save anonymous/7512375 to your computer and use it in GitHub Desktop.
Pkgfile post-install
$ cat Pkgfile
# Description: An image loading library for GTK+
# URL: http://www.gtk.org/
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
# Depends on: glib, xorg-libx11, libpng, libtiff, libjpeg
name=gdk-pixbuf
version=2.30.1
release=1
source=(http://download.gnome.org/sources/$name/2.30/$name-$version.tar.xz)
build() {
cd $name-$version
./configure \
--prefix=/usr \
--mandir=/usr/man \
--disable-nls \
--without-libjasper \
--with-x11
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/gtk-doc
}
$ cat post-install
#!/bin/sh
/usr/bin/gdk-pixbuf-query-loaders --update-cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment