aboutsummaryrefslogtreecommitdiff
path: root/src/tesserae/core/bzip2.nim
blob: 250c7626c0169b8d266c94c507ecd4c2e689d3ef (plain)
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
# Αδειοδοτείται υπό τους όρους της EUPL
import .. / .. / lapis

tessera "bzip2":
  source: "https://www.sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz"
  patches: @[
    "https://linuxfromscratch.org/patches/lfs/12.4/bzip2-1.0.8-install_docs-1.patch"
  ]
  dependencies: @[
    "bash",
    "binutils",
    "coreutils",
    "diffutils",
    "gcc",
    "glibc",
    "make"
  ]
  dependants: @[
    "file",
    "libelf"
  ]
  build: @[
    "patch -Np1 -i ../bzip-1.0.8-install_docs-1.patch",
    "sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile",
    "sed -i \"s@(PREFIX)/man@(PREFIX)/share/man@g\" Makefile",
    "make -f Makefile-libbz2_so",
    "make clean",
    "make",
    "make PREFIX=/usr install",
    "cp -av libbz2.so.* /usr/lib",
    "ln -sv libbz2.so.1.0.8 /usr/lib/libbz2.so"
    "cp -v bzip2-shared /usr/bin/bzip2",
    """
    for i in /usr/bin/{bzcat,bunzip2}; do
       ln -sfv bzip2 $i
    done
    """,
    "rm -fv /usr/lib/libbz2.a"
  ]
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.