Skip to content

Commit

Permalink
bzip2: Install directly under /bin and not /usr/bin
Browse files Browse the repository at this point in the history
Follow the Linux From Scratch book [instructions][1].

[1]: http://www.linuxfromscratch.org/lfs/view/development/chapter06/bzip2.html
  • Loading branch information
pmenzel committed Jul 5, 2019
1 parent 840e01d commit 2194cf4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bzip2.be0
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,19 @@ mee_install() {
mkdir -p ${D}${DATADIR}
mv ${D}${PREFIX}/man ${D}${DATADIR}

cp -v bzip2-shared ${D}${BINDIR}/bzip2
mkdir ${D}/bin
cp -v bzip2-shared ${D}/bin/bzip2

cp -av libbz2.so* ${D}${LIBDIR}

ln -sv libbz2.so.1.0 ${D}${LIBDIR}/libbz2.so

ln -sv libbz2.so.1.0 ${D}${LIBDIR}/libbz2.so.1

rm -v ${D}${BINDIR}/{bunzip2,bzcat}
rm -v ${D}${BINDIR}/{bunzip2,bzcat,bzip2}

ln -sv bzip2 ${D}${BINDIR}/bunzip2
ln -sv bzip2 ${D}${BINDIR}/bzcat
ln -sv bzip2 ${D}/bin/bunzip2
ln -sv bzip2 ${D}/bin/bzcat
}
## by default this may be 'make install DESTDIR="${D}"'

Expand Down

0 comments on commit 2194cf4

Please sign in to comment.