From e26bc206e2fbfb7e4611b522a5e25dbd88fa81e0 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Thu, 8 Sep 2016 13:42:16 +0200 Subject: community/ffmpegthumbnailer: improve abuild --- community/ffmpegthumbnailer/APKBUILD | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/community/ffmpegthumbnailer/APKBUILD b/community/ffmpegthumbnailer/APKBUILD index 15727b4d1f..339f9f736c 100644 --- a/community/ffmpegthumbnailer/APKBUILD +++ b/community/ffmpegthumbnailer/APKBUILD @@ -7,29 +7,25 @@ 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" +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 - -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 -} +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 + + 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 -- cgit v1.2.3