Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: whdd-3.0.1 #26339

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -3987,6 +3987,7 @@ libwayland-client++.so.0 libwaylandpp-0.2.8_1
libwayland-cursor++.so.0 libwaylandpp-0.2.8_1
libwayland-egl++.so.0 libwaylandpp-0.2.8_1
libwayland-client-extra++.so.0 libwaylandpp-0.2.8_1
libdialog.so.15 dialog-1.3.20200327_2
libspdlog.so.1 libspdlog-1.8.2_2
libmd.so.0 libmd-1.0.3_1
libldacBT_abr.so.2 ldacBT-2.0.2.3_1
Expand Down
1 change: 1 addition & 0 deletions srcpkgs/dialog-devel
23 changes: 18 additions & 5 deletions srcpkgs/dialog/template
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,29 @@ _distver=${version%.*}
_date=${version##*.}
wrksrc="${pkgname}-${_distver}-${_date}"
build_style=gnu-configure
configure_args="--with-ncursesw --disable-nls"
makedepends="ncurses-devel"
_libtool="LIBTOOL=${XBPS_CROSS_BASE}/usr/bin/libtool"
configure_args="${_libtool} --with-ncursesw --with-libtool --disable-nls"
make_build_args=$_libtool
make_install_args=$_libtool
make_install_target="install-full"
hostmakedepends="libtool"
makedepends="libtool ncurses-devel"
short_desc="Tool to display dialog boxes from shell scripts"
maintainer="Orphaned <orphan@voidlinux.org>"
maintainer="Artur Sinila <freesoftware@logarithmus.dev>"
license="LGPL-2.1-only"
homepage="https://invisible-island.net/dialog/"
changelog="https://invisible-island.net/dialog/CHANGES"
distfiles="https://invisible-mirror.net/archives/${pkgname}/${pkgname}-${_distver}-${_date}.tgz"
checksum=c3af22ccfcd9baca384062108dd9354e86990929ee270c239eef69518c5da7c8

post_install() {
rm -r ${DESTDIR}/usr/lib
dialog-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/bin/dialog-config"
vmove "usr/include"
vmove "usr/share/man/man3"
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
11 changes: 11 additions & 0 deletions srcpkgs/whdd/patches/00-gnu-source.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/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)"