summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: db4577fef147c99fd2d3b4e9f85daedbcca21629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Maciej Sobkowski <maciej@sobkow.ski>

pkgname=feedlynx
pkgver=0.3.0
pkgrel=1
pkgdesc='A tool to collect links to read or watch later in your RSS reader'
arch=('x86_64')
url='https://github.com/wezm/feedlynx'
license=('MIT')
makedepends=(
  'clang'
  'rust'
)
options=(!lto)
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/wezm/feedlynx/archive/refs/tags/${pkgver}.tar.gz")
b2sums=('f5f9e80f64f11fc8c398445ebdc90a20d44da5ff64241035c3de1a92edf743053cf5ce02fe01cff5790df53299a6506a0b6fd1c632f0b03dc5fb3b07dfa27865')

prepare() {
  cd ${pkgname}-${pkgver}
  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}


build() {
  cd ${pkgname}-${pkgver}
  export RUSTUP_TOOLCHAIN=stable
  export CARGO_TARGET_DIR=target
  cargo build --release --locked
}

package() {
  cd ${pkgname}-${pkgver}
  install -Dm755 -t "${pkgdir}"/usr/bin target/release/feedlynx
}