upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / libextractor / trunk / PKGBUILD
bloba1de4980491122a4d2a6662ddcf8321e05f70664
1 # Maintainer: Sergej Pupykin <pupykin.s@gmail.com>
2 # Contributor: damir <damir@archlinux.org>
4 pkgname=libextractor
5 pkgver=1.11
6 pkgrel=5
7 pkgdesc="A library used to extract meta-data from files of arbitrary type"
8 arch=("x86_64")
9 license=('GPL')
10 url="https://www.gnu.org/software/libextractor/"
11 depends=('libltdl')
12 makedepends=('exiv2' 'ffmpeg' 'file' 'flac' 'gst-plugins-base-libs' 'libgsf' 'libmpeg2' 'libvorbis'
13              'poppler' 'libsmf')
14 optdepends=('exiv2: metadata support'
15             'ffmpeg: previewopus/thumbnailffmpeg support'
16             'file: mime support'
17             'flac: flac support'
18             'gst-plugins-base-libs: gstreamer support'
19             'libarchive: archive support'
20             'libgsf: (optional) for ODF support'
21             'libmpeg2: mpeg support'
22             'libvorbis: ogg/vorbis support'
23             'poppler: pdf support'
24             'libsmf: midi support')
25 validpgpkeys=('19647543F7861D3BF4E64FF7BF60708B48426C7E'
26               'D8423BCB326C7907033929C7939E6BE1E29FC3CC')
27 source=("https://ftp.gnu.org/gnu/libextractor/${pkgname}-${pkgver}.tar.gz"{,.sig}
28          ffmpeg5.patch)
29 sha512sums=('7023d8cb377fda854523242ac9fd14a97eed86d2cd829b126bb4d5a26d5f3650642f3871cf74ae3b0788447cc0a2dce942684ef0d45f17c9ba9248b5aed623d3'
30             'SKIP'
31             'c81ef943428729f1edaad9a928cfff982e635c2990232cc407b8982f4d2b1925bf5aed28077151c96a3868733d7022fa0d0097927bf6f9cff91c6c47e3eae67a')
33 prepare() {
34   cd $pkgname-$pkgver
35   sed -e 's/ CODEC_FLAG_QSCALE/ AV_CODEC_FLAG_QSCALE/' \
36       -e 's/FF_INPUT_BUFFER_PADDING_SIZE/AV_INPUT_BUFFER_PADDING_SIZE/' \
37       -i src/plugins/thumbnailffmpeg_extractor.c
38   patch -p1 -i ../ffmpeg5.patch # Fix build with FFmpeg 5
41 build() {
42   cd $pkgname-$pkgver
43   ./configure --prefix=/usr --enable-shared --disable-static
44   make
47 package() {
48   cd $pkgname-$pkgver
49   make DESTDIR="$pkgdir" install
50   rm "$pkgdir"/usr/share/info/dir