diff options
Diffstat (limited to 'community/ffmpegthumbnailer/APKBUILD')
-rw-r--r-- | community/ffmpegthumbnailer/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/community/ffmpegthumbnailer/APKBUILD b/community/ffmpegthumbnailer/APKBUILD new file mode 100644 index 0000000000..bf1efd94eb --- /dev/null +++ b/community/ffmpegthumbnailer/APKBUILD @@ -0,0 +1,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" |