diff options
Diffstat (limited to 'community/ffmpegthumbnailer/APKBUILD')
-rw-r--r-- | community/ffmpegthumbnailer/APKBUILD | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/community/ffmpegthumbnailer/APKBUILD b/community/ffmpegthumbnailer/APKBUILD index 15727b4d1fb..339f9f736c6 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 |