summaryrefslogtreecommitdiff
path: root/opt/lsof/MAKEPKG
blob: 6524bf5d6121bce42c88d158ae80cae31a73f85b (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
#!/bin/mkpkg
# description: Lists information about open files for running processes
# url: https://github.com/lsof-org/lsof

name=lsof
version=4.99.7
release=1
depends=()
source=(https://github.com/lsof-org/lsof/releases/download/$version/$name-$version.tar.gz)
sha256sums=(
    "4a10391aab0b8ce1f539e82a1966693b2a6cf225972a6504ebb7ec4fa71675de"
)

build() {
    cd $name-$version
    ./configure \
        --prefix=/usr \
        --sbindir=/usr/bin \
        --bindir=/usr/bin \
        --mandir=/usr/share/man \
        --disable-static \
        --without-libtirpc
    make
    make DESTDIR=$PKG install

    # Remove liblsof shared library and headers (not needed for CLI usage)
    rm -rf $PKG/usr/include
    rm -rf $PKG/usr/lib
}

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

# vim: filetype=sh