summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52012eb9dae71d5ca3d4e75018dc4e4466851833 (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
# Maintainer: Karol 'Kenji Takahashi' Woźniak <kenji.sx>
_basename=untrunc
pkgname=untrunc-anthwlock-cli-git
pkgver=r364.bd783dd
pkgrel=1
pkgdesc="Restore a truncated mp4/mov. Improved version of ponchio/untrunc. CLI only."
arch=('x86_64')
url="https://github.com/anthwlock/untrunc"
license=('GPL-2.0-only')
groups=()
depends=('ffmpeg')
makedepends=('git')
provides=("$_basename-git")
conflicts=("$_basename-git")
replaces=("$_basename-git")
backup=()
options=()
install=
source=('untrunc::git+https://github.com/anthwlock/untrunc')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${_basename}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${_basename}"
	make
}

package() {
	cd "$srcdir/${_basename}"
	install -Dm755 untrunc "$pkgdir/usr/bin/untrunc"
}