parent
73c08d086e
commit
62e9e69fdc
2 changed files with 13 additions and 4 deletions
10
srcpkgs/zerofree/patches/fix-musl.patch
Normal file
10
srcpkgs/zerofree/patches/fix-musl.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- zerofree.c
|
||||||
|
+++ zerofree.c
|
||||||
|
@@ -17,6 +17,7 @@
|
||||||
|
* Jan Krämer.
|
||||||
|
*/
|
||||||
|
|
||||||
|
+#include <sys/stat.h>
|
||||||
|
#include <ext2fs/ext2fs.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
|
@ -1,18 +1,17 @@
|
||||||
# Template file for 'zerofree'
|
# Template file for 'zerofree'
|
||||||
pkgname=zerofree
|
pkgname=zerofree
|
||||||
version=1.1.0
|
version=1.1.1
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
makedepends="e2fsprogs-devel"
|
makedepends="e2fsprogs-devel"
|
||||||
short_desc="A tool to zero free blocks in an ext2 filesystem"
|
short_desc="A tool to zero free blocks in an ext2 filesystem"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-2"
|
license="GPL-2.0-only"
|
||||||
homepage="https://frippery.org/uml/index.html"
|
homepage="https://frippery.org/uml/index.html"
|
||||||
distfiles="https://frippery.org/uml/${pkgname}-${version}.tgz"
|
distfiles="https://frippery.org/uml/${pkgname}-${version}.tgz"
|
||||||
checksum=ee77aa1cf9dd9a8fb15c7e616f10f53d63c3112d4876221937b2875c7a122f15
|
checksum=956bc861b55ba0a2b7593c58d32339dab1a0e7da6ea2b813d27c80f08b723867
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
sed -i '18i#include <sys/stat.h>' zerofree.c
|
|
||||||
sed -i 's|\(-lext2fs\)|$(LDFLAGS) \1|' Makefile
|
sed -i 's|\(-lext2fs\)|$(LDFLAGS) \1|' Makefile
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
Loading…
Reference in a new issue