summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cfd80ad7e2240150d5c6d0b38708b1f1f9da02fc (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=r149.bba5a15
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://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"
}