summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc067aafdb3864b9477212838ba2dc60acc0c4bb (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
# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=untrunc-git
pkgver=r30.c74920f
pkgrel=3
pkgdesc="restore a damaged (truncated) mp4, m4v, mov, 3gp video"
arch=('x86_64' 'i686')
url="https://github.com/ponchio/untrunc"
license=('GPL2')
depends=('ffmpeg' 'qt5-base')
source=("${pkgname}"::'git+https://github.com/ponchio/untrunc.git')
md5sums=(SKIP)

build() {
  cd $srcdir/$pkgname
  git submodule init
  git submodule update
  make
} 

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

package() {
  install -Dm755 $srcdir/$pkgname/untrunc $pkgdir/usr/bin/untrunc
}