void-packages/srcpkgs/libextractor/template

37 lines
1.2 KiB
Bash

# Template file for 'libextractor'
pkgname=libextractor
version=1.3
revision=3
short_desc="Library used to extract meta data from files"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="GPL-3"
homepage="http://www.gnu.org/software/libextractor/"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=868ad64c9a056d6b923d451d746935bffb1ddf5d89c3eb4f67d786001a3f7b7f
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="automake gettext-devel libtool pkg-config"
makedepends="
zlib-devel bzip2-devel exiv2-devel tiff-devel libpng-devel libjpeg-turbo-devel
libvorbis-devel libflac-devel giflib-devel libmpeg2-devel ffmpeg-devel
libgsf-devel gtk+3-devel libltdl-devel libarchive-devel file-devel"
pre_configure() {
autoreconf -fi
# make it build with giflib-5.1.0
# see http://wiki.linuxfromscratch.org/blfs/ticket/5076#comment:2
sed -i "/[DE]GifCloseFile/s:gif_file:&, NULL:g" src/plugins/gif_extractor.c
}
libextractor-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
vmove usr/share/info
}
}