blob: 89178f5d3959b21175093701a18701f7597e9943 (
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
|
# Maintainer: Flat <flat@imo.uto.moe>
pkgname=rsget-git
pkgver=r198.a85773e
pkgrel=1
pkgdesc="A download tool for streams on websites."
arch=('x86_64')
url="https://github.com/Erk-/rsget"
license=('ISC')
depends=('openssl')
makedepends=('git' 'rust')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/Erk-/rsget')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}/"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
cargo build --release
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dm755 target/release/${pkgname%-git} "$pkgdir/usr/bin/${pkgname%-git}"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname-git}/LICENSE"
}
|