-
Notifications
You must be signed in to change notification settings - Fork 16
/
PKGBUILD
40 lines (31 loc) · 1.12 KB
/
PKGBUILD
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
pkgname=frei0r-plugins
_pkgname=frei0r
pkgver=2.3.3
pkgrel=2
pkgdesc="Large collection of free and portable video plugins"
arch=('x86_64')
url="https://www.dyne.org/software/frei0r/"
license=('GPL')
depends=('gcc-libs' 'gavl' 'opencv')
makedepends=('doxygen' 'cmake')
options=('!emptydirs')
source=("https://github.com/dyne/frei0r/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
"https://github.com/dyne/frei0r/commit/c0c8eed79fc8abe6c9881a53d7391efb526a3064.diff")
sha256sums=('aeeefe3a9b44761b2cf110017d2b1dfa2ceeb873da96d283ba5157380c5d0ce5'
'b3d61f05dccb65a098d303341211be5365cabe086cf57dedff1832656a157eee')
prepare() {
cd ${_pkgname}-${pkgver}
# opencv 4 support
#patch -p1 -i ${srcdir}/c0c8eed79fc8abe6c9881a53d7391efb526a3064.diff
#sed -i -e 's|AM_INIT_AUTOMAKE|AM_INIT_AUTOMAKE([foreign])|g' configure.ac
}
build() {
cmake -B build -S ${_pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
DESTDIR=${pkgdir} cmake --install build
install -Dm644 ${_pkgname}-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}