Check-in [036e2ec4da]
Overview
Comment:Updated bzip2 package to be more sane
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | packages
Files: files | file ages | folders
SHA1: 036e2ec4da8e79fdc83d80aef11f741f93e2e613
User & Date: rkeene on 2014-11-18 15:21:55
Other Links: branch diff | manifest | tags
Context
2014-11-18
15:46
Added some rkeene.org packages check-in: d1f76b33ea user: rkeene tags: packages
15:21
Updated bzip2 package to be more sane check-in: 036e2ec4da user: rkeene tags: packages
15:12
Added bzip2 package check-in: a725e4f9fa user: rkeene tags: packages
Changes

Modified pkgs/bzip2 from [fabff1cb30] to [99cab0ae8a].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23















24
#! /usr/bin/env bash

version=1.0.6
url="http://www.bzip.org/${version}/bzip2-${version}.tar.gz"
sha256="a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd"
domain='core.appfs.rkeene.org'
require=()

function configure() {
	configure_gcc
	cat Makefile-libbz2_so | sed "s|CC=gcc|CC=gcc ${CFLAGS} ${LDFLAGS}|g" > Makefile-libbz2_so.new
	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
	mv -f Makefile-libbz2_so.new Makefile-libbz2_so
	mv -f Makefile.new Makefile
}

function build() {
	make -f Makefile-libbz2_so
}

function install() {
	make install
	mv libbz2*.so* ${destdir}/${prefix}/lib















}










|
|





|



|

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /usr/bin/env bash

version=1.0.6
url="http://www.bzip.org/${version}/bzip2-${version}.tar.gz"
sha256="a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd"
domain='core.appfs.rkeene.org'
require=()

function configure() {
	configure_gcc
	cat Makefile-libbz2_so | sed "s|CC=gcc|CC=${CC} ${CFLAGS} ${LDFLAGS}|g" > Makefile-libbz2_so.new
	cat Makefile | sed "s|LDFLAGS=|LDFLAGS=${LDFLAGS}|g" | sed "s|CFLAGS=|CFLAGS=${CFLAGS} |g" > Makefile.new
	mv -f Makefile-libbz2_so.new Makefile-libbz2_so
	mv -f Makefile.new Makefile
}

function build() {
	make -f Makefile-libbz2_so PREFIX="${prefix}"
}

function install() {
	make install PREFIX="${destdir}/${prefix}"
	mv libbz2*.so* ${destdir}/${prefix}/lib
	(
		cd "${destdir}/${prefix}/bin" || exit 1
		rm -f bzcmp bzegrep bzfgrep bzless
		ln -s bzdiff bzcmp
		ln -s bzgrep bzegrep
		ln -s bzgrep bzfgrep
		ln -s bzmore bzless
	) || return 1

	(
		cd "${destdir}/${prefix}/lib" || exit 1
		rm -f bzcmp bzegrep bzfgrep bzless
		ln -s libbz2.so.1.0 libbz2.so.1
		ln -s libbz2.so.1 libbz2.so
	) || return 1
}