diff options
author | root <root@rshg054.dnsready.net> | 2012-06-26 00:01:48 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-06-26 00:01:48 +0000 |
commit | 9a6b691757346035549dbd12d1323301d04a6675 (patch) | |
tree | 5e06d2322b58a73254a0ca2c05d2083cb0209db2 /community-testing/libextractor | |
parent | 3b99c42eb8ca744e86e4e17197b1bf10642c6785 (diff) |
Tue Jun 26 00:01:48 UTC 2012
Diffstat (limited to 'community-testing/libextractor')
-rw-r--r-- | community-testing/libextractor/PKGBUILD | 38 | ||||
-rw-r--r-- | community-testing/libextractor/libextractor.install | 20 |
2 files changed, 58 insertions, 0 deletions
diff --git a/community-testing/libextractor/PKGBUILD b/community-testing/libextractor/PKGBUILD new file mode 100644 index 000000000..06ff89934 --- /dev/null +++ b/community-testing/libextractor/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 72914 2012-06-24 19:24:08Z foutrelis $ +# Maintainer: Sergej Pupykin <pupykin.s@gmail.com> +# Contributor: damir <damir@archlinux.org> + +pkgname=libextractor +pkgver=0.6.3 +pkgrel=5 +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-testing/libextractor/libextractor.install b/community-testing/libextractor/libextractor.install new file mode 100644 index 000000000..1cf51e095 --- /dev/null +++ b/community-testing/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 +} |