summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 853cc394e65cecc06c1f44c1594b0e778468d686 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Daniel Bermond < gmail-com: danielbermond >

pkgname=frei0r-plugins-git
_srcname=frei0r
pkgver=1.6.1.r49.g07146e3
pkgrel=1
pkgdesc='A minimalistic plugin API for video effects (git version)'
arch=('i686' 'x86_64')
url='https://www.dyne.org/software/frei0r/'
license=('GPL')
depends=('cairo' 'gavl')
makedepends=('git' 'opencv')
optdepends=('opencv: for facebl0r and facedetect plugins')
provides=('frei0r-plugins')
conflicts=('frei0r-plugins')
source=('git+https://github.com/dyne/frei0r.git')
sha256sums=('SKIP')

prepare() {
    cd "$_srcname"
    
    ./autogen.sh
}

pkgver() {
    cd "$_srcname"
    
    printf '%s' "$(git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//')"
}

build() {
    cd "$_srcname"
    
    ./configure \
        --prefix='/usr' \
        --enable-static='no' \
        --enable-shared='yes' \
        --enable-fast-install='yes' \
        --enable-cpuflags
        
    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
    
    make
}

package() {
    cd "$_srcname"
    
    make DESTDIR="$pkgdir" install
}