Created
March 22, 2015 02:54
-
-
Save cam72cam/0d82654f4d913725c9df to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| name="glib2" | |
| iteration="3" | |
| version="2.38.2" | |
| desc="Common C routines used by GTK+ and other libs" | |
| url="http://www.gtk.org/" | |
| src=('http://ftp.gnome.org/pub/GNOME/sources/glib/2.38/glib-2.38.2.tar.xz') | |
| bdeps=('libc(+dev)' 'pkg-config' 'zlib(+dev)' 'pcre(+dev)' 'libffi(+dev)' 'python2') | |
| deps=('libc' 'libffi' 'zlib' '[-dev]pcre' '[+dev]python2' '[+dev]pcre(+dev)') | |
| flags=('-dbg' '-dev' '-doc' '+locale') | |
| srcdir="glib-$version" | |
| function configure() { | |
| ./configure --prefix=/usr --libdir=/usr/lib \ | |
| --sysconfdir=/etc \ | |
| --with-pcre=system \ | |
| --disable-fam | |
| } | |
| function build() { | |
| default | |
| } | |
| function installpkg() { | |
| default | |
| if ( ! $flag_dbg ); then | |
| rm -rf ${dest_dir}/usr/share/gdb/ | |
| rm -rf ${dest_dir}/usr/share/glib-2.0/gdb | |
| fi | |
| if ( ! $flag_dev ); then | |
| rm -rf ${dest_dir}/usr/include/ | |
| rm -rf ${dest_dir}/usr/lib/*.la | |
| rm -rf ${dest_dir}/usr/lib/pkgconfig/ | |
| rm -rf ${dest_dir}/usr/share/aclocal/ | |
| rm -rf ${dest_dir}/usr/bin/gdbus-codegen | |
| rm -rf ${dest_dir}/usr/share/glib-2.0/codegen | |
| fi | |
| if ( ! $flag_doc ); then | |
| rm -rf ${dest_dir}/usr/share/gtk-doc/ | |
| fi | |
| if ( ! $flag_locale ); then | |
| rm -rf ${dest_dir}/usr/share/locale | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment