mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
community/ffmpegthumbnailer: improve abuild
This commit is contained in:
parent
8b5b479f45
commit
e26bc206e2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user