Skip to content

Commit

Permalink
New package: whdd-3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Logarithmus committed Feb 19, 2021
1 parent 9b27326 commit 349b2dc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
11 changes: 11 additions & 0 deletions srcpkgs/whdd/patches/gnu-source.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -5,7 +5,7 @@
option(STATIC "Build static binaries" OFF)
option(CLI "Build whdd-cli" OFF)

-set(CMAKE_C_FLAGS "-std=gnu99 -pthread -Wall -Wextra -Wno-missing-field-initializers ${CFLAGS}")
+set(CMAKE_C_FLAGS "-D_GNU_SOURCE -std=gnu99 -pthread -Wall -Wextra -Wno-missing-field-initializers ${CFLAGS}")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS}")
set(CMAKE_C_FLAGS_DEBUG "-O0 -g -ggdb ${CMAKE_C_FLAGS}")

17 changes: 17 additions & 0 deletions srcpkgs/whdd/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Template file for 'whdd'
pkgname=whdd
version=3.0.1
revision=1
build_style=cmake
configure_args="-DCLI=ON"
makedepends="dialog-devel ncurses-devel"
short_desc="HDD diagnostics and data recovery tool for Linux"
maintainer="Artur Sinila <opensource@logarithmus.dev>"
license="GPL-3.0-only"
homepage="https://github.com/whdd/whdd"
distfiles="https://github.com/whdd/whdd/archive/${version}.tar.gz"
checksum=58c975695fca5ae8ed67589d7db945d99a027019ecab39aee4e3a608d29a1801

post_install() {
mv "${DESTDIR}/usr/sbin" "${DESTDIR}/usr/bin"
}
2 changes: 2 additions & 0 deletions srcpkgs/whdd/update
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
site="https://github.com/whdd/whdd/tags"
pattern="archive/\K[\d.]+(?=\.tar\.gz)"

0 comments on commit 349b2dc

Please sign in to comment.