vp-build/srcpkgs/zerofree/template

21 lines
581 B
Bash

# Template file for 'zerofree'
pkgname=zerofree
version=1.1.0
revision=1
build_style=gnu-makefile
makedepends="e2fsprogs-devel"
short_desc="A tool to zero free blocks in an ext2 filesystem"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://frippery.org/uml/index.html"
distfiles="https://frippery.org/uml/${pkgname}-${version}.tgz"
checksum=ee77aa1cf9dd9a8fb15c7e616f10f53d63c3112d4876221937b2875c7a122f15
post_extract() {
sed -i '18i#include <sys/stat.h>' zerofree.c
sed -i 's|\(-lext2fs\)|$(LDFLAGS) \1|' Makefile
}
do_install() {
vbin $pkgname
}