summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c97f4b946e4200c54fd02336779c39bf70b45f4 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Maintainer: Max Beikirch <max.beikirch (at) unitybox (dot) de>
pkgname=squash-git
pkgver=v0.7.0.r498.g713eeca
pkgrel=1
pkgdesc="tool for compression benchmarks"
arch=('x86_64')
url="https://quixdb.github.io/squash/"
license=('MIT')
depends=('ragel')
makedepends=('cmake' 'git')
source=("git+https://github.com/quixdb/squash.git"
        "git+https://github.com/nemequ/liblzf.git"
        "git+https://github.com/nemequ/doboz.git"
        "git+https://github.com/svn2github/fastlz.git"
        "git+https://github.com/nemequ/lzjb.git"
        "git+https://github.com/tinycthread/tinycthread.git"
        "git+https://github.com/davidcatt/FastARI.git"
        "git+https://github.com/google/gipfeli.git"
        "git+https://github.com/richgel999/lzham_codec_devel.git"
        "git+https://github.com/google/brotli.git"
        "git+https://github.com/zpaq/zpaq.git"
        "git+https://github.com/richox/libzling.git"
        "git+https://github.com/Cyan4973/zstd.git"
        "git+https://github.com/coderforlife/ms-compress.git"
        "git+https://github.com/IlyaGrebnov/libbsc.git"
        "git+https://github.com/centaurean/density.git"
        "git+https://bitbucket.org/tkatchev/yalz77"
        "git+https://github.com/fusiyuan2010/CSC.git"
        "git+https://github.com/nemequ/bzip2.git"
        "git+https://github.com/nemequ/lzo.git"
        "git+https://github.com/google/snappy.git"
        "git+https://github.com/madler/zlib.git"
        "git+http://git.tukaani.org/xz.git"
        "git+https://github.com/Cyan4973/lz4.git"
        "git+https://github.com/ShaneWF/wflz.git"
        "git+https://github.com/mbitsnbites/liblzg.git"
        "git+https://github.com/Dead2/zlib-ng.git"
        "git+https://github.com/jibsen/brieflz.git"
        "git+https://github.com/atomicobject/heatshrink.git"
        "git+https://github.com/ebiggers/libdeflate.git"
        "git+https://github.com/jibsen/parg.git"
        "git+https://github.com/win-iconv/win-iconv"
        "git+https://github.com/richgel999/miniz.git"
        "git+https://github.com/nemequ/munit.git"
        "git+https://github.com/lzfse/lzfse.git"
        "git+https://github.com/nemequ/hedley.git")


md5sums=('SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
)

pkgver() {
    cd "${srcdir}/squash"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}


prepare() {
    cd "${srcdir}/squash"
    git submodule init
    git config submodule."plugins/lzf/liblzf".url "${srcdir}/liblzf"
    git config submodule."plugins/doboz/doboz".url "${srcdir}/doboz"
    git config submodule."plugins/fastlz/fastlz".url "${srcdir}/fastlz"
    git config submodule."plugins/lzjb/lzjb".url "${srcdir}/lzjb"
    git config submodule."squash/tinycthread".url "${srcdir}/tinycthread"
    git config submodule."plugins/fari/FastARI".url "${srcdir}/FastARI"
    git config submodule."plugins/gipfeli/gipfeli".url "${srcdir}/gipfeli"
    git config submodule."plugins/lzham/lzham".url "${srcdir}/lzham_codec_devel"
    git config submodule."plugins/brotli/brotli".url "${srcdir}/brotli"
    git config submodule."plugins/zpaq/zpaq".url "${srcdir}/zpaq"
    git config submodule."plugins/zling/libzling".url "${srcdir}/libzling"
    git config submodule."plugins/zstd/zstd".url "${srcdir}/zstd"
    git config submodule."plugins/ms-compress/ms-compress".url "${srcdir}/ms-compress"
    git config submodule."plugins/bsc/libbsc".url "${srcdir}/libbsc"
    git config submodule."plugins/density/density".url "${srcdir}/density"
    git config submodule."plugins/yalz77/yalz77".url "${srcdir}/yalz77"
    git config submodule."plugins/csc/csc".url "${srcdir}/CSC"
    git config submodule."plugins/bzip2/bzip2".url "${srcdir}/bzip2"
    git config submodule."plugins/lzo/lzo".url "${srcdir}/lzo"
    git config submodule."plugins/snappy/snappy".url "${srcdir}/snappy"
    git config submodule."plugins/zlib/zlib".url "${srcdir}/zlib"
    git config submodule."plugins/lzma/xz".url "${srcdir}/xz"
    git config submodule."plugins/lz4/lz4".url "${srcdir}/lz4"
    git config submodule."plugins/wflz/wflz".url "${srcdir}/wflz"
    git config submodule."plugins/lzg/liblzg".url "${srcdir}/liblzg"
    git config submodule."plugins/zlib-ng/zlib-ng".url "${srcdir}/zlib-ng"
    git config submodule."plugins/brieflz/brieflz".url "${srcdir}/brieflz"
    git config submodule."plugins/heatshrink/heatshrink".url "${srcdir}/heatshrink"
    git config submodule."plugins/libdeflate/libdeflate".url "${srcdir}/libdeflate"
    git config submodule."utils/parg".url "${srcdir}/parg"
    git config submodule."squash/win-iconv".url "${srcdir}/win-iconv"
    git config submodule."plugins/miniz/miniz".url "${srcdir}/miniz"
    git config submodule."tests/munit".url "${srcdir}/munit"
    git config submodule."plugins/lzfse/lzfse".url "${srcdir}/lzfse"
    git config submodule."squash/hedley".url "${srcdir}/hedley"
    git submodule update

    ./autogen.sh --prefix=/usr
}

build() {
    cd "${srcdir}/squash"

    make
}

package() {
    cd "${srcdir}/squash"

    make DESTDIR="${pkgdir}" install
    install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
}