summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 066f54880373f8cc55012b150ece259afbdb2cd0 (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
# Maintainer: Wesley Moore <wes@wezm.net>
pkgname=rsspls
pkgver=0.8.1
pkgrel=2
pkgdesc="Generate RSS feeds from web pages"
arch=("x86_64")
url="https://github.com/wezm/rsspls"
license=('MIT' 'Apache')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('1720447ff0e652e4719d7f4a2d3337a52c59f326e54a50dda7529ed7a6930ce0')
# https://github.com/briansmith/ring/issues/1444
options=("!lto")

build() {
  cd "$pkgname-$pkgver"
  cargo build --release --locked
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
  for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
}