aboutsummaryrefslogtreecommitdiffstats
path: root/community/newsboat/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/newsboat/APKBUILD')
-rw-r--r--community/newsboat/APKBUILD42
1 files changed, 27 insertions, 15 deletions
diff --git a/community/newsboat/APKBUILD b/community/newsboat/APKBUILD
index 5fcb964962c..4bc8984e615 100644
--- a/community/newsboat/APKBUILD
+++ b/community/newsboat/APKBUILD
@@ -1,39 +1,51 @@
# Maintainer: Mike Crute <mike@crute.us>
pkgname=newsboat
-pkgver=2.19
-pkgrel=1
+pkgver=2.35
+pkgrel=0
pkgdesc="RSS/Atom feed reader for text terminals"
url="https://newsboat.org/"
-arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by rust/cargo
+arch="all"
license="MIT"
replaces="newsbeuter"
provides="newsbeuter=$pkgver-r$pkgrel"
-makedepends="asciidoctor cargo curl-dev gettext-dev json-c-dev libxml2-dev
- ncurses-dev sqlite-dev stfl-dev xz"
+makedepends="asciidoctor cargo curl-dev gettext-dev libxml2-dev
+ ncurses-dev sqlite-dev stfl-dev json-c-dev"
subpackages="$pkgname-doc $pkgname-lang"
-source="https://github.com/newsboat/newsboat/archive/r$pkgver.tar.gz
- json-c-0.14.patch
+source="
+ https://newsboat.org/releases/$pkgver/newsboat-$pkgver.tar.xz
+ fix-version-number.patch
+ newsboat.desktop
"
+options="net" # cargo fetch
-builddir="$srcdir/$pkgname-r$pkgver"
+# secfixes:
+# 2.30.1-r0:
+# - CVE-2020-26235
-export GETTEXT_BIN_DIR=/usr/bin
-export GETTEXT_LIB_DIR=/usr/lib/gettext
-export GETTEXT_INCLUDE_DIR=/usr/include
+prepare() {
+ default_prepare
+
+ cargo fetch --target="$CTARGET" --locked
+}
build() {
./config.sh
echo "LDFLAGS+= -lintl" >> config.mk
- make prefix=/usr
+ make
}
check() {
- make prefix=/usr test
+ make test
}
package() {
make DESTDIR="$pkgdir" prefix=/usr install
+ install -Dm644 "$srcdir"/newsboat.desktop \
+ "$pkgdir"/usr/share/applications/newsboat.desktop
}
-sha512sums="a996625fbd511ceea2d7439bfe80d1baffb099f5ecacc67a476fc2724da8ed1e539594f0b92e814c1339ab5494aa96894c075f169e8575ed6d5d0f4b9364e05c r2.19.tar.gz
-6b5bbea2b46542ba093a72f21851745018ec2abf35d364e723bd4e37092612593c9d2b6146784ea6ded1a26322c824804cae14d25e2e49dc945f0f899d96252e json-c-0.14.patch"
+sha512sums="
+a73e0cc44117aa9a19449eb5f2c0833cf9417d32e5909901cbe86fdd34bcc7c8c612b17291e435fe0c93d4c44c976f3860d3658472a8e55fb3aa28ac875f3a82 newsboat-2.35.tar.xz
+6ed838525a41e21a179f23f4f9728daea248a523a51db93c0c44e66cdc4258f5e1ee2f55bb561ac967884ce93178a1b12969fb8e6de0b0f3356e0ef85d6d170c fix-version-number.patch
+47383e96fadb26db8c505add42efa354ec099abb0b2fbe366e6f860ba12cec864c7ec0e2ce274bec478eb623c62e8f0796029aed4132a365ff1707f537c2d272 newsboat.desktop
+"