summaryrefslogtreecommitdiff
path: root/community/ffmpegthumbnailer
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-09-08 13:42:16 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-09-08 13:42:16 +0200
commite26bc206e2fbfb7e4611b522a5e25dbd88fa81e0 (patch)
tree72dfa7dab8057603120724bb1821d275bf762158 /community/ffmpegthumbnailer
parent8b5b479f45a87aaa9a2143a45899a7a06154c6c9 (diff)
downloadaports-e26bc206e2fbfb7e4611b522a5e25dbd88fa81e0.zip
community/ffmpegthumbnailer: improve abuild
Diffstat (limited to 'community/ffmpegthumbnailer')
-rw-r--r--community/ffmpegthumbnailer/APKBUILD22
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