From a71961a43ef48f47d3575915f63099308a18a263 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Aug 2012 00:01:57 +0000 Subject: Wed Aug 1 00:01:57 UTC 2012 --- community-staging/libextractor/PKGBUILD | 38 ++++++++++++++++++++++ .../libextractor/libextractor.install | 20 ++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 community-staging/libextractor/PKGBUILD create mode 100644 community-staging/libextractor/libextractor.install (limited to 'community-staging/libextractor') diff --git a/community-staging/libextractor/PKGBUILD b/community-staging/libextractor/PKGBUILD new file mode 100644 index 000000000..a47a2eac0 --- /dev/null +++ b/community-staging/libextractor/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 74556 2012-07-30 14:07:44Z spupykin $ +# Maintainer: Sergej Pupykin +# Contributor: damir + +pkgname=libextractor +pkgver=0.6.3 +pkgrel=6 +pkgdesc="A library used to extract meta-data from files of arbitrary type" +arch=("i686" "x86_64") +license=('GPL') +url="http://gnunet.org/libextractor/" +depends=('libltdl') +makedepends=('flac' 'poppler' 'exiv2' 'qt' 'libvorbis' 'gtk2' 'libgsf' 'libmpeg2') +optdepends=('flac: flac support' + 'poppler: pdf support' + 'exiv2: metadata support' + 'qt: the Qt GUI interface/thumbnails' + 'gtk2: gtk2 GUI interface/thumbnails' + 'libgsf: (optional) for ODF support' + 'libmpeg2: mpeg support' + 'libvorbis: ogg/vorbis support') +options=('!libtool' '!makeflags') +install=libextractor.install +source=("http://ftpmirror.gnu.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig}) +md5sums=('7004ff6be06e400050f0ad7016140981' + '81f95c31831dde62428a98ae32464c51') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr --enable-shared --disable-static + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + rm ${pkgdir}/usr/share/info/dir +} diff --git a/community-staging/libextractor/libextractor.install b/community-staging/libextractor/libextractor.install new file mode 100644 index 000000000..1cf51e095 --- /dev/null +++ b/community-staging/libextractor/libextractor.install @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(extractor.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} -- cgit v1.2.3-54-g00ecf