mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-24 15:12:18 +08:00
46 lines
686 B
Markdown
46 lines
686 B
Markdown
|
<package-info :package="package" showsbu></package-info>
|
||
|
|
||
|
<script>
|
||
|
new Vue({
|
||
|
el: '#main',
|
||
|
data: { package: {} },
|
||
|
mounted: function () {
|
||
|
this.getPackage('gawk');
|
||
|
},
|
||
|
methods: {
|
||
|
getPackage: function(name) {
|
||
|
getPackage(name)
|
||
|
.then(response => this.package = response);
|
||
|
},
|
||
|
}
|
||
|
})
|
||
|
</script>
|
||
|
|
||
|
## Настройка
|
||
|
|
||
|
Убедимся, что лишние файлы не будут установлены
|
||
|
|
||
|
```bash
|
||
|
sed -i 's/extras//' Makefile.in
|
||
|
```
|
||
|
|
||
|
|
||
|
```bash
|
||
|
./configure --prefix=/usr \
|
||
|
--host=$LIN_TGT \
|
||
|
--build=$(./config.guess)
|
||
|
```
|
||
|
|
||
|
## Сборка
|
||
|
|
||
|
|
||
|
```bash
|
||
|
make
|
||
|
```
|
||
|
|
||
|
## Установка
|
||
|
|
||
|
```bash
|
||
|
make DESTDIR=$LIN install
|
||
|
```
|