mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
54 lines
2 KiB
Bash
54 lines
2 KiB
Bash
# Maintainer: Sergej Pupykin <pupykin.s@gmail.com>
|
|
# Contributor: damir <damir@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - patch from Fedora to fix FTBFS
|
|
|
|
pkgname=libextractor
|
|
pkgver=1.9
|
|
pkgrel=1
|
|
pkgdesc="A library used to extract meta-data from files of arbitrary type"
|
|
arch=("x86_64")
|
|
license=('GPL')
|
|
url="http://gnunet.org/libextractor/"
|
|
depends=('libltdl')
|
|
makedepends=('exiv2' 'ffmpeg' 'file' 'flac' 'gst-plugins-base-libs' 'libgsf' 'libmpeg2' 'libvorbis'
|
|
'poppler' 'libsmf')
|
|
optdepends=('exiv2: metadata support'
|
|
'ffmpeg: previewopus/thumbnailffmpeg support'
|
|
'file: mime support'
|
|
'flac: flac support'
|
|
'gst-plugins-base-libs: gstreamer support'
|
|
'libarchive: archive support'
|
|
'libgsf: (optional) for ODF support'
|
|
'libmpeg2: mpeg support'
|
|
'libvorbis: ogg/vorbis support'
|
|
'poppler: pdf support'
|
|
'libsmf: midi support')
|
|
validpgpkeys=('19647543F7861D3BF4E64FF7BF60708B48426C7E'
|
|
'D8423BCB326C7907033929C7939E6BE1E29FC3CC')
|
|
source=("https://ftp.gnu.org/gnu/libextractor/${pkgname}-${pkgver}.tar.gz"{,.sig}
|
|
"libextractor-1.7-segfault.patch")
|
|
sha512sums=('c2539b144d026fb0e871c5776aee4deaad4a987a730350744a7e5e74fbe98a4abb635dbe206b93c3aa9cd676b8797ea0b97271de0c903dfb035e245ab42ea149'
|
|
'SKIP'
|
|
'60f8847b95ae568b55c1ef528472c71166701963a419d3a17afc7359ced4d7d7b9e607410d678412b59ab9fb937e9abc3437d266508200bf6d199271a7574a81')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
sed -e 's/ CODEC_FLAG_QSCALE/ AV_CODEC_FLAG_QSCALE/' \
|
|
-e 's/FF_INPUT_BUFFER_PADDING_SIZE/AV_INPUT_BUFFER_PADDING_SIZE/' \
|
|
-i src/plugins/thumbnailffmpeg_extractor.c
|
|
patch -p0 -i ../libextractor-1.7-segfault.patch
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
./configure --prefix=/usr --enable-shared --disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
rm "$pkgdir"/usr/share/info/dir
|
|
}
|