1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Tom Gundersen <teg@jklm.no>
3 # Contributor: Angel Velasquez <angvp@archlinux.org>
4 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
5 # Contributor: Aaron Griffin <aaron@archlinux.org>
6 # Contributor: Jochem Kossen <j.kossen@home.nl>
7 # Contributor: Hendrik Meyer <archlinux@t4cc0.re>
12 pkgdesc='Lists open files for running Unix processes'
13 url='https://github.com/lsof-org/lsof'
16 depends=('glibc' 'libtirpc')
17 source=(https://github.com/lsof-org/lsof/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
19 sha512sums=('bd94d6395a425bedd4506a263aac57fb11b608b9dce9c46182ca050be9f92c5cdcae8cca6f7a27a3eaf66a60c37c5d3e2e9414e87eb3b6e524315811d7f5c3a4'
20 '3bdbc8f213e9bdba946636498d21486e2b79d8ae44a45b284b4dff8875e76f992ab0977e3ed510525a8f74203028acb6b15315fda963666012874be4ce4fdd93')
25 sed -i 's|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|' dialects/linux/machine.h
26 sed -i "s|.so ./version|.ds VN ${pkgver}|" -i Lsof.8
32 make CC="cc ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}"
38 install -Dm 755 lsof -t "${pkgdir}"/usr/bin
39 install -Dm 644 Lsof.8 "${pkgdir}"/usr/share/man/man8/lsof.8
40 install -Dm 644 "${srcdir}"/license.txt \
41 "${pkgdir}"/usr/share/licenses/lsof/LICENSE