PKGNAME=lrzsz
PKGSEC=net
PKGDEP="glibc"
PKGDES="Xmodem, ymodem and zmodem file transfer protocols"

AUTOTOOLS_AFTER=(
    '--disable-pubdir'
    '--enable-syslog'
    '--program-transform-name=s/l//'
)

# FIXME: Hard-coded path references.
ABSHADOW=0

# Note: No need to re-generate as a Fedora patch changes configure.
RECONF=0

# Note: Downgraded from Debian's invented "0.12.21" to upstream sources.
PKGEPOCH=1

# FIXME: Fails to build from source.
#
# xstrtol.c: In function ‘xstrtol’:
# xstrtol.h:11:19: error: implicit declaration of function ‘strtol’; did you mean ‘xstrtol’? [-Wimplicit-function-declaration]
#    11 | # define __strtol strtol
#       |                   ^~~~~~
# xstrtol.c:87:9: note: in expansion of macro ‘__strtol’
#    87 |   tmp = __strtol (s, p, base);
#       |         ^~~~~~~~
# make[2]: *** [Makefile:158: xstrtol.o] Error 1
AB_FLAGS_FTF=0

# FIXME: Race condition during installation
#
# ln: failed to access '.../lrzsz-0.12.20/abdist//usr/bin/sz': No such file or directory
NOPARALLEL=1
