Diff

Differences From Artifact [fabff1cb30]:

To Artifact [99cab0ae8a]:


     4      4   url="http://www.bzip.org/${version}/bzip2-${version}.tar.gz"
     5      5   sha256="a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd"
     6      6   domain='core.appfs.rkeene.org'
     7      7   require=()
     8      8   
     9      9   function configure() {
    10     10   	configure_gcc
    11         -	cat Makefile-libbz2_so | sed "s|CC=gcc|CC=gcc ${CFLAGS} ${LDFLAGS}|g" > Makefile-libbz2_so.new
    12         -	cat Makefile | sed "s|LDFLAGS=|LDFLAGS=${LDFLAGS}|g" | sed "s|CFLAGS=|CFLAGS=${CFLAGS} |g" | sed "s|PREFIX=/usr/local|PREFIX=${destdir}/${prefix}|g" > Makefile.new
           11  +	cat Makefile-libbz2_so | sed "s|CC=gcc|CC=${CC} ${CFLAGS} ${LDFLAGS}|g" > Makefile-libbz2_so.new
           12  +	cat Makefile | sed "s|LDFLAGS=|LDFLAGS=${LDFLAGS}|g" | sed "s|CFLAGS=|CFLAGS=${CFLAGS} |g" > Makefile.new
    13     13   	mv -f Makefile-libbz2_so.new Makefile-libbz2_so
    14     14   	mv -f Makefile.new Makefile
    15     15   }
    16     16   
    17     17   function build() {
    18         -	make -f Makefile-libbz2_so
           18  +	make -f Makefile-libbz2_so PREFIX="${prefix}"
    19     19   }
    20     20   
    21     21   function install() {
    22         -	make install
           22  +	make install PREFIX="${destdir}/${prefix}"
    23     23   	mv libbz2*.so* ${destdir}/${prefix}/lib
           24  +	(
           25  +		cd "${destdir}/${prefix}/bin" || exit 1
           26  +		rm -f bzcmp bzegrep bzfgrep bzless
           27  +		ln -s bzdiff bzcmp
           28  +		ln -s bzgrep bzegrep
           29  +		ln -s bzgrep bzfgrep
           30  +		ln -s bzmore bzless
           31  +	) || return 1
           32  +
           33  +	(
           34  +		cd "${destdir}/${prefix}/lib" || exit 1
           35  +		rm -f bzcmp bzegrep bzfgrep bzless
           36  +		ln -s libbz2.so.1.0 libbz2.so.1
           37  +		ln -s libbz2.so.1 libbz2.so
           38  +	) || return 1
    24     39   }