summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f55986ead6641b58fbbf1c6703394c238ecd661 (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
# Maintainer: Wesley Moore <wes@wezm.net>
pkgname=rsspls
pkgver=0.10.0
pkgrel=1
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=('8ac3ac58d04a1d49372cb480f07e6646991f9e5b5a7f748ac5bbfe973104b958')

build() {
  cd "$pkgname-$pkgver"
  # https://archlinux.org/todo/lto-fat-objects/
  CFLAGS+=' -ffat-lto-objects' 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
}