39 lines
881 B
Bash
39 lines
881 B
Bash
# Maintainer: Felix Bühler <account at buehler dot rocks>
|
|
|
|
pkgname=jjr-newsflash
|
|
_pkgname=news_flash_gtk
|
|
pkgver=1070.0d9f8d9
|
|
pkgrel=1
|
|
pkgdesc="The spiritual successor to FeedReader"
|
|
arch=('x86_64')
|
|
url="https://gitlab.com/news-flash/news_flash_gtk"
|
|
license=(GPL3)
|
|
depends=(libadwaita gtk4 webkit2gtk-5.0)
|
|
makedepends=(git cargo meson rust sccache)
|
|
conflicts=(newsflash)
|
|
source=("git+https://gitlab.com/news-flash/news_flash_gtk.git")
|
|
sha512sums=("SKIP")
|
|
|
|
pkgver() {
|
|
cd "${_pkgname}"
|
|
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
|
}
|
|
|
|
prepare() {
|
|
cd "${_pkgname}"
|
|
# Trustdns likes to bug out when not on a stable network
|
|
sed -i 's/\.trust_dns(true)/\.trust_dns(false)/' src/util/mod.rs
|
|
}
|
|
|
|
build() {
|
|
cd "${_pkgname}"
|
|
#rm -rf _build
|
|
arch-meson _build
|
|
ninja -C _build
|
|
}
|
|
|
|
package() {
|
|
cd "${_pkgname}"
|
|
env DESTDIR="$pkgdir" ninja -C _build install
|
|
}
|