aboutsummaryrefslogtreecommitdiffstats
path: root/community/ffmpegthumbnailer/APKBUILD
blob: bf1efd94eb0e80e8d389fcce63aa0d1a58963bbc (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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=ffmpegthumbnailer
pkgver=2.1.1
pkgrel=0
pkgdesc="Lightweight video thumbnailer that can be used by file managers"
url="https://github.com/dirkvdb/ffmpegthumbnailer"
arch="all"
license="GPLv2"
makedepends="$depends_dev 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
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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="753c8ba68f66ae085ef178d7c5966cae  ffmpegthumbnailer-2.1.1.tar.bz2"
sha256sums="51bca83c0cfae283e8e2f323aa49e0c6ced206c5a068332b4be974d3905cf055  ffmpegthumbnailer-2.1.1.tar.bz2"
sha512sums="2ac9e8b904e73086d0bf0f586a971bf3807d41bd394505164461731099c17570b45d71374e2bbf6fa2d0d7d47011564e06230b360255535120a9969fde3888a4  ffmpegthumbnailer-2.1.1.tar.bz2"