summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8157c69182fb0d25ac94f6c2155b78397245b4e0 (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=2
pkgdesc="restore a damaged (truncated) mp4, m4v, mov, 3gp video"
arch=('x86_64' 'i686')
url="https://github.com/ponchio/untrunc"
license=('GPL2')
depends=('ffmpeg' 'qt-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
}