jjr-newsflash/PKGBUILD

39 lines
864 B
Bash
Raw Normal View History

2020-02-04 21:19:51 +01:00
# Maintainer: Felix Bühler <account at buehler dot rocks>
pkgname=jjr-newsflash
2020-02-04 21:19:51 +01:00
_pkgname=news_flash_gtk
2020-09-22 19:58:25 +02:00
pkgver=684.fea372a
2020-04-20 23:03:31 +02:00
pkgrel=1
2020-02-04 21:19:51 +01:00
pkgdesc="The spiritual successor to FeedReader"
arch=(any)
url="https://gitlab.com/news-flash/news_flash_gtk"
license=(GPL3)
2021-01-26 12:45:12 +01:00
depends=(libhandy webkit2gtk)
2022-01-05 20:54:42 +01:00
makedepends=(git cargo meson rust sccache)
2020-02-04 21:43:34 +01:00
conflicts=(newsflash)
2020-02-04 21:19:51 +01:00
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
}
2020-02-04 21:19:51 +01:00
build() {
cd "${_pkgname}"
2020-04-20 23:03:31 +02:00
#rm -rf _build
2020-02-04 21:19:51 +01:00
arch-meson _build
ninja -C _build
}
package() {
cd "${_pkgname}"
env DESTDIR="$pkgdir" ninja -C _build install
}