2 version
=${pkg_name##*-}
4 archive_name
=$src_name-$version.
tar.gz
7 pkg_dir
=$pkgs_dir_root/$src_name-$version
9 mkdir
-p $pkgs_dir_root
10 cp -f $src_dir_root/$archive_name $pkgs_dir_root
14 build_dir
=$builds_dir_root/$pkg_name
19 export PKG_CONFIG_LIBDIR
=
22 -isystem /nyan/glibc/current/include \
23 -isystem /nyan/linux-headers/current/include \
24 -I/nyan/zlib/current/include \
25 -L/nyan/zlib/current/lib \
26 -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib \
27 -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc"
28 export 'CFLAGS=-O2 -pipe -fPIC'
30 --prefix=/nyan
/$src_name/$slot \
40 rm -Rf /nyan
/$src_name/$slot/share
/doc
41 rm -Rf /nyan
/$src_name/$slot/share
/man
42 rm -f /nyan
/$src_name/$slot/lib
/*.la
43 find /nyan
/$src_name/$slot/lib
-type f |
while read f
; do if file $f |
egrep 'ELF.+(shared|executable)' >/dev
/null
; then strip
-s $f; fi; done
45 rm -f $pkgs_dir_root/$archive_name
46 rm -Rf $build_dir $pkg_dir