aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan P. Stanić <mps@arvanta.net>2020-07-18 21:55:27 +0200
committerMilan P. Stanić <mps@arvanta.net>2020-07-19 19:25:34 +0000
commitf96f146924b989a1ab4ddca1494369f811198060 (patch)
tree79625609b3e471a34229b604c691eb6fb9a94131
parent5e8c4f009a341008d660c93a90111f8df18cbe56 (diff)
downloadaports-f96f146924b989a1ab4ddca1494369f811198060.tar.gz
aports-f96f146924b989a1ab4ddca1494369f811198060.tar.bz2
aports-f96f146924b989a1ab4ddca1494369f811198060.tar.xz
testing/crazydiskinfo: new aport
https://github.com/otakuto/crazydiskinfo interactive TUI S.M.A.R.T viewer
-rw-r--r--testing/crazydiskinfo/APKBUILD38
-rw-r--r--testing/crazydiskinfo/disable-linking-tinfow.patch15
2 files changed, 53 insertions, 0 deletions
diff --git a/testing/crazydiskinfo/APKBUILD b/testing/crazydiskinfo/APKBUILD
new file mode 100644
index 0000000000..68a9e12bad
--- /dev/null
+++ b/testing/crazydiskinfo/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Milan P. Stanić <mps@arvanta.net>
+# Maintainer: Milan P. Stanić <mps@arvanta.net>
+pkgname=crazydiskinfo
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="interactive TUI S.M.A.R.T viewer"
+url="https://github.com/otakuto/crazydiskinfo"
+arch="all"
+license="MIT"
+options="!check" # no tests
+makedepends="cmake ncurses-dev libatasmart-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/otakuto/crazydiskinfo/archive/$pkgver.tar.gz
+ disable-linking-tinfow.patch
+ "
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ $CMAKE_CROSSOPTS .
+ make -C build
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=1 make -C build check
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+}
+
+sha512sums="57e9ea4f8abec18355806da35225132f06a5562b1717e6dca1515043b2a0f2a51b47a2bcda31f1e64d6b2e9c8c6de5445d835f59eed79fd0911e06fd32296803 crazydiskinfo-1.1.0.tar.gz
+d1f1ee89be20302f76e360bf1b8aa9bac253a0e273b926225d8e65144f7c4443123a6304c93aeb102d7a93408ad3fecf1788cca06aee1b94f734dd4a3cd7170f disable-linking-tinfow.patch"
diff --git a/testing/crazydiskinfo/disable-linking-tinfow.patch b/testing/crazydiskinfo/disable-linking-tinfow.patch
new file mode 100644
index 0000000000..0eeae5f897
--- /dev/null
+++ b/testing/crazydiskinfo/disable-linking-tinfow.patch
@@ -0,0 +1,15 @@
+Author: Milan P. Stanić <mps@arvanta.net>
+Date: Sat Jul 18 21:55:27 2020 +0200
+Upstream: No
+
+Alpine Linux doesn't have libtinfo
+
+--- a/CMakeLists.txt 2020-02-05 23:22:57.000000000 +0100
++++ b/CMakeLists.txt 2020-07-18 21:40:13.157880457 +0200
+@@ -5,6 +5,5 @@
+ set(CMAKE_CXX_FLAGS "-Wall -std=c++11")
+ SET_TARGET_PROPERTIES(CrazyDiskInfo PROPERTIES OUTPUT_NAME crazy)
+ target_link_libraries(CrazyDiskInfo atasmart)
+-target_link_libraries(CrazyDiskInfo tinfow)
+ target_link_libraries(CrazyDiskInfo ncursesw)
+ INSTALL(TARGETS CrazyDiskInfo RUNTIME DESTINATION /usr/sbin)