summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d968c1b9ff3f64d91b09cc0698af952736e5b97 (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
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: claymorwan <claymorwan@fembois.dev>

_pkgname=vertd

pkgname=vertd-git
pkgver=r69.9ffeaf5
pkgrel=1
pkgdesc="VERT's solution to crappy video conversion services."
arch=(x86_64)
url="https://github.com/VERT-sh/vertd"
license=('GPL-3.0-only')
makedepends=('git' 'cargo')
provides=("$pkgname")
conflicts=("$pkgname")
source=("$_pkgname::git+$url")
sha256sums=('SKIP')


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

# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/$_pkgname"
	cargo fetch
}

build() {
	cd "$srcdir/$_pkgname"
	cargo build
}

package() {
	cd "$srcdir/$_pkgname"
	install -Dm644 "target/debug/$_pkgname" -t "$pkgdir/usr/bin/"
	chmod +x "$pkgdir/usr/bin/$_pkgname"
	install -Dm644 'LICENSE' -t "$pkgdir/usr/share/licenses/$_pkgname/"

}