Package Details: hackernews_tui 0.13.4-1

Git Clone URL: (read-only, click to copy)
Package Base: hackernews_tui
Description: A Terminal UI to browse hacker news.
Upstream URL:
Licenses: MIT
Submitter: BachoSeven
Maintainer: BachoSeven
Last Packager: BachoSeven
Votes: 4
Popularity: 0.000001
First Submitted: 2021-03-04 16:29 (UTC)
Last Updated: 2023-11-09 17:46 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

BachoSeven commented on 2023-06-07 21:52 (UTC)

@jahway603 try it now

jahway603 commented on 2023-06-07 21:23 (UTC)

Build is somehow failing on line #35 in PKGBUILD, but the file exists and the error received is

==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat 'doc/': No such file or directory
==> ERROR: A failure occurred in package().
error: failed to build 'hackernews_tui-0.13.2-2': 

BachoSeven commented on 2023-04-23 10:34 (UTC)

@qudibt thanks, done!

qubidt commented on 2023-04-19 12:09 (UTC) (edited on 2023-04-19 12:11 (UTC) by qubidt)

The build fails with linker errors when building with LTO. (lto is enabled by default when using extra-x86_64-build from extra/devtools; see: /usr/share/devtools/makepkg-x86_64.conf).

This is caused by the ring dependency (see upstream issue).

Added an explicit !lto option to the PKGBUILD to workaround this issue. (see: community/maturin PKGBUILD) Also added the project's docs and example config to the package.


diff --git a/PKGBUILD b/PKGBUILD
index 3b88e23..400b8f1 100644
@@ -12,6 +12,8 @@ makedepends=('cargo')
 optdepends=('mercury-parser: to view articles directly in the terminal')
+# disable LTO until ring can be built with it:

 build() {
     cd "${_gitname}-$pkgver"
@@ -30,5 +32,7 @@ package() {

     install -Dm755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
     install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+    install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" "" "doc/"
+    install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}/examples" "examples/hn-tui.toml"
 # vim:set ts=2 sw=2 et: