Created
November 17, 2013 12:00
-
-
Save anonymous/7512477 to your computer and use it in GitHub Desktop.
Pkgfile post-install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat Pkgfile | |
# Description: A multi-platform toolkit for creating graphical user interfaces | |
# URL: http://www.gtk.org/ | |
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu | |
# Depends on: atk, hicolor-icon-theme, gdk-pixbuf, pango, xorg-libsm, xorg-libxcursor, xorg-libxinerama, xorg-libxrandr, xorg-libxcomposite | |
name=gtk | |
version=2.24.22 | |
release=1 | |
source=(http://download.gnome.org/sources/gtk+/2.24/${name}+-$version.tar.xz) | |
build() { | |
cd gtk+-$version | |
./configure \ | |
--disable-introspection \ | |
--prefix=/usr \ | |
--mandir=/usr/man | |
make | |
make DESTDIR=$PKG install | |
rm -r $PKG/usr/share/{locale,gtk-doc,gtk-2.0} $PKG/usr/bin/gtk-demo | |
} | |
$ cat post-install | |
#!/bin/sh | |
/usr/bin/gtk-query-immodules-2.0 --update-cache | |
/usr/bin/gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment