fdupes: fix musl build
This commit is contained in:
parent
1a10bb3677
commit
8033691f78
1 changed files with 7 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'fdupes'
|
||||
pkgname=fdupes
|
||||
version=1.51
|
||||
revision=4
|
||||
revision=5
|
||||
distfiles="https://github.com/adrianlopezroche/fdupes/archive/$pkgname-$version.tar.gz"
|
||||
checksum=761e16d4ecfef7302c62fe7ef1e181cd34f5c6ce5377dcad96e3ed44fb364986
|
||||
maintainer="Steven R <dev@styez.com>"
|
||||
|
@ -10,6 +10,12 @@ license="MIT"
|
|||
short_desc="Identifying or deleting duplicate files residing within specified directories"
|
||||
wrksrc="$pkgname-$pkgname-$version"
|
||||
|
||||
post_extract() {
|
||||
# can't assign to stdin on musl
|
||||
sed -i 's/stdin = freopen/FILE *tty = freopen/' -i fdupes.c
|
||||
sed -i 's/deletefiles(files, 1, stdin);/deletefiles(files, 1, tty);/' -i fdupes.c
|
||||
}
|
||||
|
||||
do_build() {
|
||||
make CC="$CC"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue