summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b5f6f9d2415f8b6c88d5c1e475e8a045a6815cd (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
pkgname=fetcher-rs
_pkgname=fetcher
pkgver=0.13.1
pkgrel=1
pkgdesc='Automatic news fetching and parsing'
arch=('any')
url="https://github.com/SergeyKasmy/${_pkgname}"
license=('MPL-2.0')
makedepends=('rust')
source=("${_pkgname}-${pkgver}::git+${url}.git#tag=v${pkgver}")
sha256sums=('SKIP')

build() {
	cd "$srcdir/$_pkgname-$pkgver"

	export FETCHER_MAIN_BRANCH_OVERRIDE=1
	cargo build --release
}

package() {
	cd "$srcdir/$_pkgname-$pkgver"
	install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
	install -Dm644 "packaging/systemd/$_pkgname.service" "$pkgdir/usr/lib/systemd/system/$_pkgname.service"
}