summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ecc07b6486691f94973882b4cd4ec7d36a25da2 (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
# Maintainer: Tércio Martins <echo dGVyY2lvd2VuZGVsQGdtYWlsLmNvbQo= | base64 -d>

pkgname=olive-community-effects-git
_pkgname=Olive-Editor-Community-Effects
pkgver=r57.043abef
_commit=043abef
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="A collection of effects for Olive made by the community"
url="https://github.com/cgvirus/$_pkgname"
license=('unknown')
depends=('olive-git')
makedepends=('git')
conflicts=('olive')
source=("git+$url#commit=$_commit")
sha512sums=('SKIP')

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

package() {
  mkdir -p "$pkgdir/usr/share/olive-editor/effects/$_pkgname"
  cp -r --preserve=mode,timestamps \
        $srcdir/$_pkgname/* \
        $pkgdir/usr/share/olive-editor/effects/$_pkgname/
}