2021-11-05 00:24:31 +08:00
|
|
|
{{ include('../packages/xz/README.md') }}
|
2021-05-05 20:09:48 +08:00
|
|
|
|
|
|
|
## Настройка
|
|
|
|
|
|
|
|
```bash
|
2021-06-28 12:21:07 +08:00
|
|
|
./configure --prefix=/usr --host=$LIN_TGT \
|
|
|
|
--build=$(build-aux/config.guess) \
|
|
|
|
--disable-static \
|
2021-07-09 05:53:21 +08:00
|
|
|
--disable-doc
|
2021-05-05 20:09:48 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## Сборка
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
## Установка
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make DESTDIR=$LIN install
|
|
|
|
```
|
2021-07-20 04:36:53 +08:00
|
|
|
|
2021-07-20 05:52:32 +08:00
|
|
|
## При раздельной структуре каталогов
|
|
|
|
|
2021-07-20 04:36:53 +08:00
|
|
|
Переместите часть файлов в нужные директории:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
mv -v $LIN/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} $LIN/bin
|
|
|
|
mv -v $LIN/usr/lib/liblzma.so.* $LIN/lib
|
|
|
|
ln -svf ../../lib/$(readlink $LIN/usr/lib/liblzma.so) $LIN/usr/lib/liblzma.so
|
|
|
|
```
|