hfsprogs: fix musl build

This commit is contained in:
John 2020-07-04 11:42:35 +02:00
parent 13f8cd1713
commit 12c6f6f376
No known key found for this signature in database
GPG key ID: 5FDE97AF468A09B7

View file

@ -14,6 +14,10 @@ homepage="http://www.opensource.apple.com/"
distfiles="http://cavan.codon.org.uk/~mjg59/diskdev_cmds/diskdev_cmds-${version}.tar.gz"
checksum=b01b203a97f9a3bf36a027c13ddfc59292730552e62722d690d33bd5c24f5497
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
pre_build() {
sed -i 's/[F|f]sck_hfs/fsck.hfsplus/g' fsck_hfs.tproj/fsck_hfs.8
sed -i 's/[N|n]ewfs_hfs/mkfs.hfsplus/g' newfs_hfs.tproj/newfs_hfs.8