mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
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'
|
# Template file for 'fdupes'
|
||||||
pkgname=fdupes
|
pkgname=fdupes
|
||||||
version=1.51
|
version=1.51
|
||||||
revision=4
|
revision=5
|
||||||
distfiles="https://github.com/adrianlopezroche/fdupes/archive/$pkgname-$version.tar.gz"
|
distfiles="https://github.com/adrianlopezroche/fdupes/archive/$pkgname-$version.tar.gz"
|
||||||
checksum=761e16d4ecfef7302c62fe7ef1e181cd34f5c6ce5377dcad96e3ed44fb364986
|
checksum=761e16d4ecfef7302c62fe7ef1e181cd34f5c6ce5377dcad96e3ed44fb364986
|
||||||
maintainer="Steven R <dev@styez.com>"
|
maintainer="Steven R <dev@styez.com>"
|
||||||
|
@ -10,6 +10,12 @@ license="MIT"
|
||||||
short_desc="Identifying or deleting duplicate files residing within specified directories"
|
short_desc="Identifying or deleting duplicate files residing within specified directories"
|
||||||
wrksrc="$pkgname-$pkgname-$version"
|
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() {
|
do_build() {
|
||||||
make CC="$CC"
|
make CC="$CC"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue