summaryrefslogtreecommitdiff
path: root/community-staging
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-16 00:02:54 +0000
committerroot <root@rshg054.dnsready.net>2012-05-16 00:02:54 +0000
commita7a5f4160bb345e35c58a565494d4416f601fc17 (patch)
treeccfe5688f0a902f1ee3ac215f2a27bdec7d42d01 /community-staging
parent52a4948b9138662b1e7b23b04ef0d72101519f2d (diff)
Wed May 16 00:02:54 UTC 2012
Diffstat (limited to 'community-staging')
-rw-r--r--community-staging/libextractor/PKGBUILD34
-rw-r--r--community-staging/libextractor/libextractor.install20
2 files changed, 54 insertions, 0 deletions
diff --git a/community-staging/libextractor/PKGBUILD b/community-staging/libextractor/PKGBUILD
new file mode 100644
index 000000000..2db22ffbf
--- /dev/null
+++ b/community-staging/libextractor/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 70661 2012-05-14 09:30:25Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s@gmail.com>
+# Contributor: damir <damir@archlinux.org>
+
+pkgname=libextractor
+pkgver=0.6.3
+pkgrel=2
+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=('libvorbis' 'libltdl' 'gtk2' 'libgsf' 'libmpeg2')
+makedepends=('flac' 'poppler' 'exiv2' 'qt')
+optdepends=('flac'
+ 'poppler'
+ 'exiv2'
+ 'qt')
+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
+}