summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d65c250b8d81fbc8c88ff33831d612883e28c04 (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: Tomek Łaziuk <tlaziuk@gmail.com>

_pkgname=ffautocrop
pkgname=$_pkgname-git
pkgver=0.0.1.r0.g94c632c
pkgrel=1
pkgdesc="automatically crop a video using ffmpeg"
arch=("any")
url="https://github.com/tlaziuk/${_pkgname}"
license=('GPL')
depends=('ffmpeg')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+https://github.com/tlaziuk/${_pkgname}.git")
md5sums=('SKIP')

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

  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/${_pkgname}"

  install -Dm755 $_pkgname        "$pkgdir/usr/bin/${_pkgname}"
}