summaryrefslogtreecommitdiff
path: root/core/gzip/MAKEPKG
blob: d616d5975e2cbc000f7a4e13dc3a222531071d7e (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
#!/bin/mkpkg
# description: GNU compression utility
# url: https://www.gnu.org/software/gzip

name=gzip
version=1.15
release=2
source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)

sha256sums=(
    "9aa0cc780dec156b8282844833b342ab7cb08c25d2cd9a1869cdd0df31deff48"
)

build() {
    cd $name-$version
    ./configure \
        --prefix=/ \
        --bindir=/bin \
        --mandir=/usr/share/man \
        --disable-nls
    make
    make install DESTDIR=$PKG
    rm -rf $PKG/share
    for f in gzexe uncompress zcmp zdiff zforce zegrep zfgrep zgrep zless zmore znew; do
        rm -f $PKG/bin/$f
        rm -f $PKG/usr/share/man/man1/$f.1*
    done
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh