aboutsummaryrefslogtreecommitdiffstats
path: root/community/ffmpegthumbnailer/APKBUILD
blob: 5563bcee0b54c57f77b9e768c9da56a162283d39 (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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=ffmpegthumbnailer
pkgver=2.2.0
pkgrel=0
pkgdesc="Lightweight video thumbnailer that can be used by file managers"
url="https://github.com/dirkvdb/ffmpegthumbnailer"
arch="all"
license="GPL-2.0"
makedepends="ffmpeg-dev libpng-dev libjpeg-turbo-dev cmake"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.bz2::https://github.com/dirkvdb/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	cmake \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX:PATH=/usr \
		-DENABLE_GIO=ON \
		-DENABLE_THUMBNAILER=ON . || return 1
	make || return 1
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install || return 1
	if [ -d "$pkgdir/usr/lib64" ]; then
		mv "$pkgdir"/usr/lib64 "$pkgdir"/usr/lib
	fi
}

md5sums="ed3754b3b8b9af93a93c490e17def0d0  ffmpegthumbnailer-2.2.0.tar.bz2"
sha256sums="e5c31299d064968198cd378f7488e52cd5e738fac998eea780bc77d7f32238c2  ffmpegthumbnailer-2.2.0.tar.bz2"
sha512sums="526d15b2c754fcb1415e69fb54cb6e7d0102b6d73a32a7e8528df81e32633dfe3786898984fdb988c93daee7218956c75c096ef657c9b3a42399d2d1d27c7bbf  ffmpegthumbnailer-2.2.0.tar.bz2"